dao-jun commented on PR #23165:
URL: https://github.com/apache/pulsar/pull/23165#issuecomment-2287923950

   > When the Pulsar value is greater than the OS value, the `listen` method 
will use the minimum value.
   > 
   > Pulsar     OS      Final
   > 1024       128     128
   > 1024       4096    1024
   > Please see https://man7.org/linux/man-pages/man2/listen.2.html
   > 
   > > If the backlog argument is greater than the value in
   > > /proc/sys/net/core/somaxconn, then it is silently capped to that
   > > value.  Since Linux 5.4, the default in this file is 4096; in
   > > earlier kernels, the default value is 128.  Before Linux 2.4.25,
   > > this limit was a hard coded value, SOMAXCONN, with the value 128.
   > 
   > Do you consider this case?
   
   Oh, thanks for reminding me, I don't notice the case before.
   
   However, netty still has a chance to failed read SO_BACKLOG from 
`/proc/sys/net/core/somaxconn`, when this exception happens, the SO_BACKLOG 
value will default set to 128.
   see: https://github.com/netty/netty/issues/4936   
https://github.com/netty/netty/blob/4.1/common/src/main/java/io/netty/util/NetUtil.java#L170


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to