listen backlog for stream servers

Dmitry Krikov d.krikov at
Fri Jun 5 12:24:23 UTC 2015


 Listen backlog in Nginx defaults to NGX_LISTEN_BACKLOG=511 on Linux & other platforms (excepting FreeBSD & MacOS), not to system somaxconn (why does it differ for different OSes?).

 It’s not a problem to increase it using «backlog» option of «listen» directive for HTTP servers (,
but there is no such option for stream server (

 Is there any proper way to increase listen queue length for stream server (without patching source code) or globally? Seems to be a subject to fix.

Best Regards,
Dmitry Krikov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list