Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get BACKLOG of listening socket

I have a listening socket on port 80 on ubuntu linux.

tcp    0  0 0.0.0.0:80      0.0.0.0:*   LISTEN  12248/nginx

Is there any way to get backlog value of that socket (backlog value that was sent to listen() call)?

I know that I could view the nginx configuration but configuration file could be changed without reloading nginx with new configuration, so the backlog argument in configuration and in actual LISTEN call could be different.

like image 632
Tereska Avatar asked Jun 02 '13 12:06

Tereska


1 Answers

ss -lt gives this value in the Send-Q column.

like image 65
user133831 Avatar answered Oct 14 '22 13:10

user133831