Sergii Shymko

Results 13 comments of Sergii Shymko

@successmarket External patch URLs work perfectly fine for me. Only the local patch files do not.

@cweagans (Haven't tested `./patches` path yet; will try to find time to test this shortly and report back). Looks like the issue is with the directory relative to which the...

@twose Very clever idea to use `ArrayAccess` interface to scope the data by coroutine ID! This should work at least in some cases, such as for the request super-global variables....

@ValiDrv Thanks for providing a code example of what the Swoole coroutine context @twose was talking about! Just wanted to clarify the use of super-globals. If you're designing your application...

The approach of caching the dispatch results by connection ID `$fd` demonstrated above does NOT even allow to implement an algorithm as simple as Round-Robin. Multiple requests of the same...

The fallback dispatch by the Client ID `($fd - 1) % $server->setting['worker_num']` is emulation of the built-in fixed client mode `dispatch_mode = 2`. The problem of duplicating the dispatch modes...

Hm, multiple requests can be handled through the same persistent connection. So, there will be multiple calls to the dispatch function with request data (`$type == 10`) before the connection...

@flddr and @twose Transparent profiling of an application regardless of the response population workflow is the use case. Library [upscalesoftware/swoole-blackfire](https://github.com/upscalesoftware/swoole-blackfire) introduces the [response proxy](https://github.com/upscalesoftware/swoole-blackfire/blob/master/src/Response/Proxy.php) with the [event subscription](https://github.com/upscalesoftware/swoole-blackfire/blob/master/src/Response/Observable.php). There is...

+1 to @fakharak's comment above! The the ideal solution in the most general form is ability to switch arbitrary globals (mainly to replicate FastCGI/PHP-FPM behavior) when switching coroutines. Without such...

Accidentally discovered the following **undocumented feature** that can be used as a workaround for masking sensitive data. GitHub Actions appears to automatically mask inputs / environment variables following certain naming...