patch-pre2.0.14-final2.0 linux/net/ipv4/tcp_output.c

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

diff -u --recursive --new-file pre2.0.14/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -882,11 +882,12 @@
 
 	/* Calculate new timeout */
 	now = jiffies;
-	if (timeout > max_timeout || sk->bytes_rcv >= sk->max_unacked) {
+	if (timeout > max_timeout)
+		timeout = max_timeout;
+	timeout += now;
+	if (sk->bytes_rcv >= sk->max_unacked) {
 		timeout = now;
 		mark_bh(TIMER_BH);
-	} else {
-		timeout += now;
 	}
 
 	/* Use new timeout only if there wasn't a older one earlier  */

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