]> git.neil.brown.name Git - history.git/commitdiff
[TCP]: Do not bump backoff too high during 0-window probes.
authorDavid S. Miller <davem@nuts.ninka.net>
Mon, 10 Feb 2003 20:09:47 +0000 (12:09 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Mon, 10 Feb 2003 20:09:47 +0000 (12:09 -0800)
net/ipv4/tcp_output.c

index d18878772d71c36a0c350f3dfe7a111852639f81..3c5b5208c247d66866aadd64d000be3ce375e9a9 100644 (file)
@@ -1522,7 +1522,8 @@ void tcp_send_probe0(struct sock *sk)
        }
 
        if (err <= 0) {
-               tp->backoff++;
+               if (tp->backoff < sysctl_tcp_retries2)
+                       tp->backoff++;
                tp->probes_out++;
                tcp_reset_xmit_timer (sk, TCP_TIME_PROBE0, 
                                      min(tp->rto << tp->backoff, TCP_RTO_MAX));