Steps to reproduce:
- set net.core.somaxconn to bigger than 128, using sysctl -w net.core.somaxconn=12800;
- start zabbix-server service;
- using "ss -tnlp | grep zabbix" to check the zabbix server listen state , and find that the send-q is still 128, but it should be 12800;
the listen socket backlog should be equal to SOMAXCONN, set in sysctl 12800.
i have saw the source code about listen() at line 1147 and 1308 in src/libs/zbxcomms/comms.c, the backlog value in listen() is set to "SOMAXCONN", but i can NOT found the reference of "SOMAXCONN", which is 128 in /usr/include/bits/socket.h. if you include this socket.h when compiling, it will fix to 128 and never bigger than 128.
So is there any way to change it, or add a parameter "ListenBacklog" to zabbix_server.conf?