patch-1.3.66 linux/net/ipv4/tcp_input.c

Next file: linux/Makefile
Previous file: linux/net/ipv4/ip_fw.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.65/linux/net/ipv4/tcp_input.c linux/net/ipv4/tcp_input.c
@@ -1930,6 +1930,15 @@
 		kfree_skb(skb, FREE_READ);
 
 	/*
+	 * Finally, if we've moved to TCP_CLOSE, check if we should
+	 * get rid of the socket
+	 */
+	if (sk->dead && sk->state == TCP_CLOSE) {
+		/* Should be about 2 rtt's */
+   		reset_timer(sk, TIME_DONE, min(sk->rtt * 2, TCP_DONE_TIME));
+	}
+
+	/*
 	 *	And done
 	 */	
 	


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this