Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm working with mobile IPv6 and was dealing with lots of zombie connections. I set keepAlive to true and want to test whether old connections are being discarded.

I'm using lsof to list the process connections, but I can't tell how old the connection is.

Is there a way to verify this?

share|improve this question
add comment

1 Answer

netstat -nlp

  • -n for not resolving the ips
  • -l for listening sockets. Skip this if you want to list outgoing connections
  • -p to show executable name (last column) and process id

edit:

ow. WHEN. That kind of information is not kept... Well at least for TCP/IP. If it's a unix socket you can try with socket file times (created, modified ...)

share|improve this answer
    
Thanks, but it doesn't show the connection date. –  Marcio Aguiar May 9 '11 at 15:07
    
sorry. didn't read correctly. what you want is not possible –  NickSoft May 10 '11 at 8:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.