listen backlog for stream servers

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


 Hi,

 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 (http://nginx.org/en/docs/http/ngx_http_core_module.html#listen),
but there is no such option for stream server (http://nginx.org/en/docs/stream/ngx_stream_core_module.html#listen).

 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: <http://mailman.nginx.org/pipermail/nginx/attachments/20150605/23a6ee6f/attachment.html>


More information about the nginx mailing list