hollodotme / fast-cgi-client

A PHP fast CGI client for sending requests (a)synchronously to PHP-FPM
Other
551 stars 34 forks source link

Close unused socket connections when processing async requests #42

Closed hollodotme closed 5 years ago

hollodotme commented 5 years ago

Related to issue #40

Proposed Changes

Further comments

The introduction of re-using idle sockets in v2.7.0 caused the issue that finished async requests kept their socket connections to php-fpm open forever. If the number of parallel async requests exceeds the number of allowed pm.max_children further requests were not processed anymore as php-fpm was expecting to get new requests through the already open, idle socket connections.