adoy / PHP-FastCGI-Client

Lightweight, single file, FastCGI client for PHP
MIT License
302 stars 61 forks source link

ForbiddenException #13

Open langemeijer opened 8 years ago

langemeijer commented 8 years ago

I noticed ForbiddenException('Not in white list. Check listen.allowed_clients.') is thrown when a zero-byte response is received from the closing socket.

Apparently this is what happens when php-fpm encounters a client that is not allowed to connect. This is one of many cases however. Network disruption could cause this too, a restarting php-fpm server will cause this too.

I would suggest a more generic exception name for this.

langemeijer commented 8 years ago

I just read this was a separate pull request by @Timandes, I still think that was a bad idea.