Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The meaning of Recv-Q in netstat(8) seems to be a little incorrect. #24

Open
lichenxi-cat opened this issue Jul 28, 2023 · 1 comment
Open

Comments

@lichenxi-cat
Copy link

From the man page, it says that:
Recv-Q: Established: The count of bytes not copied by the user program connected to this socket. Listening: Since Kernel 2.6.18 this column contains the current syn backlog.

But according to the source code of current version of Linux kernel, when the state of socket is TCP_LISTEN, the value of rx_queue equals to sk_ack_backlog, which represents the length of accept queue instead of the length of syn backlog. So I think the explanation of Recv-Q from man page is wrong.

@ecki
Copy link
Owner

ecki commented Jul 29, 2023

Thanks for the info. Did you see if this was wrong all time or has a later kernel version changed it, again? (I am not sure if „syn backlog“ doesn’t mean the same thing, don’t remember)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants