Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #3828

Re: What does the Recv-Q values in a Listen socket mean?

Newsgroups comp.os.linux.networking
Date 2016-08-25 18:02 -0700
References <67efcc96-2950-4cb2-b4ca-85dd1cf80427@googlegroups.com> <slrnnrug2g.5q5.grahn+nntp@frailea.sa.invalid> <npnsj1$tke$1@news.hpeswlab.net>
Message-ID <1fc0ff50-2108-494f-bb51-e76a7c0ac030@googlegroups.com> (permalink)
Subject Re: What does the Recv-Q values in a Listen socket mean?
From Xiaofeng Wang <wasphin@gmail.com>

Show all headers | View raw


> > But now I see it's on a LISTEN socket.  I'm not sure what a Recv-Q
> > there means, but I suspect it means some new clients are trying to
> > connect, but the server hasn't called accept(2) yet.
> 
> I believe you are correct, but it may depend on how new the
> kernel/netstat happens to be.

Sorry, but that's not the situation. I copy&paste a TCP example, see
https://gist.github.com/was4444/e0ed6b852dc45588e5ba5e31fb724459#file-tcp_server-c-L42, I do not accept a connection, the netstat output like bellow:

$ netstat -ntap |grep 8888
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LISTEN      20013/./server      
tcp        0      0 127.0.0.1:55566             127.0.0.1:8888              ESTABLISHED 20034/./client      
tcp       24      0 127.0.0.1:8888              127.0.0.1:55566             ESTABLISHED -  

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What does the Recv-Q values in a Listen socket mean? Xiaofeng Wang <wasphin@gmail.com> - 2016-08-25 06:49 -0700
  Re: What does the Recv-Q values in a Listen socket mean? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2016-08-25 19:00 +0000
    Re: What does the Recv-Q values in a Listen socket mean? Rick Jones <rick.jones2@hpe.com> - 2016-08-25 22:48 +0000
      Re: What does the Recv-Q values in a Listen socket mean? Xiaofeng Wang <wasphin@gmail.com> - 2016-08-25 18:02 -0700
        Re: What does the Recv-Q values in a Listen socket mean? Xiaofeng Wang <wasphin@gmail.com> - 2016-08-25 18:14 -0700
          Re: What does the Recv-Q values in a Listen socket mean? Xiaofeng Wang <wasphin@gmail.com> - 2016-08-25 18:19 -0700
    Re: What does the Recv-Q values in a Listen socket mean? Xiaofeng Wang <wasphin@gmail.com> - 2016-08-25 19:01 -0700

csiph-web