vermaneerajin / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

sockets in TIME_WAIT state #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Establish a session
2. restart shellinaboxd
3. netstat -na | grep 4200

What is the expected output? What do you see instead?
There are now many socket in state TIME_WAIT.

What version of the product are you using? On what operating system?
Probably all versions on all OS.

Please provide any additional information below.
This can easily be solved using setsockopt SO_LINGER (see patch).

Original issue reported on code.google.com by macgar...@gmail.com on 19 Nov 2010 at 11:00

Attachments:

GoogleCodeExporter commented 8 years ago
What isn't made clear in this report is the reason to avoid TIME_WAIT.  The 
sockets will timeout on their own as dictated by TCP.  Moreover, using 
SO_LINGER to avoid TIME_WAIT states is discouraged in Stevens' UNIX Network 
Programming.

Patch not applied.

Original comment by beewoo...@gmail.com on 31 Mar 2012 at 10:12