Closed sandrokeil closed 7 years ago
Oh, I just have to use a persistent socket connection.
$connection = new UnixDomainSocket(
'unix:///var/run/php7-fpm.sock', # Socket path to php-fpm
15000, # Connect timeout in milliseconds (default: 5000)
15000, # Read/write timeout in milliseconds (default: 5000)
true, # Make socket connection persistent (default: false)
true # Keep socket connection alive (default: false)
);
I send 10 requests async and save the corresponding request id in an array. Then I use a loop over the ids to get the content, but only the content of the first id is received. After that I got the error
fatal error: Uncaught hollodotme\FastCGI\Exceptions\ForbiddenException: Not in white list. Check listen.allowed_clients
.Here is a test script
Any ideas?