Re: TCP Connection times out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   From: Martin Zielinski <mz@seh.de>
   Date: Mon, 10 Feb 2003 13:54:28 +0100

   Remember the situation:
   - Linux wants to transmit data sending a packet with window size e.g. 5840
   - The receiver can't use the data (printer paper empty) -> ACK window size 0
   - Linux takes a timeout (tp->probes_out is zero after receiving the ACK)
   ... LOOP - The Timeout between these cycles is doubled by the use of 
   tp->backoff (tp->rto << tp->backoff) until TCP_MAX_RTO is reached.

Ok, then just limit tp->backoff in tcp_send_probe0() like this:

	if (tp->backoff < sysctl_tcp_retry2)
		tp->backoff++;

I think this fixes the bug more elegantly.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux