Skip to contentSkip to conversation

TCP_LINGER2 TIME_WAIT

DISCUSSION Reza Roboubi 2 participants 3 messages Sep 13, 2007

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 3 lines · Reza Roboubi

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?

The whole point of TIME-WAIT is catching old packets still in network. Killing it early would avoid its purpose.

-Andi

#2 lore raw
Quoted 8 lines · Andi Kleen
Quoted 3 lines · Reza Roboubi

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?

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.