nginx, php-fpm and 502 errors

Denis F. Latypoff denis at
Wed Nov 21 11:46:05 MSK 2007

Hello Jure,

Wednesday, November 21, 2007, 2:27:30 PM, you wrote:

> On Wed, 21 Nov 2007 14:23:05 +0600
> "Denis F. Latypoff" <denis at> wrote:

>> Try to increase backlog in the fcgi spawn utility.

> We use php-fpm patch for php, where backlog is set to -1 by default. Thanks
> for hint, will examine what that means :) 

I thinks it's means that listen(2) will use SOMAXCONN which is can be set by

Linux: net.core.somaxconn (default is 128)
FreeBSD: kern.ipc.somaxconn (default is 128)

Best regards,
 Denis                            mailto:denis at

More information about the nginx mailing list