开发者

Socket not listed in lsof but is listed in netstat

When I do "lsof -n开发者_如何学Pythonl | egrep "TCP|UDP" " in order to see socket states, I notice that the sockets that I expected to be listed are not at all, but when I do a "netstat --tcp", they are listed, but are in a CLOSE_WAIT state.

What I know so far is that the CLOSE_WAIT state signifies that my application has a responsibility now to explicitly close this socket (but there is a bug that I'm trying to track down, which keeps this socket in a CLOSE_WAIT state). I thought that if a socket exists, then it must have an open file descriptor associated with it, so I expected to see it on the output of lsof. Why is it that I couldn't see it there?

Thanks, Sandra


Do you have enough permissions? (And I think this belongs to superuser)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜