c - listen() backlog upper limits -


even though lot said on topic, still stumped.

i experiment monster linux server capable of handling proper load ramps, presumably many thousand connections second. now, if check default listen() queue:

#cat /proc/sys/net/core/somaxconn 128 

which couldn't actual queue size @ all. suspect might legacy, , actual size given this:

#cat /proc/sys/net/ipv4/tcp_max_syn_backlog 2048 

however, man tcp says latter connections awaiting ack clients, different total number of connections having not yet been accepted, listen() backlog is.

so question how can increase listen() backlog, , how get/set upper limit of (right before kernel recompilation)?

somaxconn number of complete connections waiting.

tcp_max_syn_backlog number of incomplete connections waiting.

they aren't same thing. it's described in man page.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -