TCP_LINGER2 TIME_WAIT
man 7 tcp says TCP_LINGER2 sets the lifetime of orphaned FIN_WAIT2 state sockets. What about wanting to forcibly kill a "rotten" TCP socket in any other "WAIT" state like TIME_WAIT?
Thanks.
Reza.
Quoted 3 lines · Reza Roboubi
man 7 tcp says
TCP_LINGER2sets the lifetime of orphanedFIN_WAIT2state sockets. What about wanting to forcibly kill a "rotten" TCP socket in any other "WAIT" state likeTIME_WAIT?
The whole point of TIME-WAIT is catching old packets still in network. Killing it early would avoid its purpose.
-Andi
Quoted 8 lines · Andi Kleen
Quoted 3 lines · Reza Roboubi
man 7 tcp says
TCP_LINGER2sets the lifetime of orphanedFIN_WAIT2state sockets. What about wanting to forcibly kill a "rotten" TCP socket in any other "WAIT" state likeTIME_WAIT?The whole point of TIME-WAIT is catching old packets still in network. Killing it early would avoid its purpose.
tcp_max_tw_buckets does exactly that system wide, and for good reason. Why not give userspace oversight over the process?
Reza.