netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <dada1@cosmosbay.com>
To: David Miller <davem@davemloft.net>
Cc: ilpo.jarvinen@helsinki.fi, netdev@vger.kernel.org
Subject: Re: [TCP] Probable bug in icsk_probes_out handling ?
Date: Thu, 24 Jul 2008 07:22:00 +0200	[thread overview]
Message-ID: <48881178.3080901@cosmosbay.com> (raw)
In-Reply-To: <20080723.163444.165532483.davem@davemloft.net>

David Miller a écrit :
> From: Eric Dumazet <dada1@cosmosbay.com>
> Date: Wed, 23 Jul 2008 15:35:19 +0200
> 
>> Apparently, we can in some situations reset TCP connections in a couple of seconds when some frames are lost.
> 
> I think it is some optimization that went in between 2.2.x and 2.4.x
> which took things a little bit too far.
> 
> Please try this patch:

Yes, this patch solves the problem. 
I tried a similar patch yesterday but was not sure about its validity.
Thanks a lot David.
 
> 
> diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
> index 1f5e604..75efd24 100644
> --- a/net/ipv4/tcp_input.c
> +++ b/net/ipv4/tcp_input.c
> @@ -3292,6 +3292,7 @@ static int tcp_ack(struct sock *sk, struct sk_buff *skb, int flag)
>  	 * log. Something worked...
>  	 */
>  	sk->sk_err_soft = 0;
> +	icsk->icsk_probes_out = 0;
>  	tp->rcv_tstamp = tcp_time_stamp;
>  	prior_packets = tp->packets_out;
>  	if (!prior_packets)
> @@ -3324,8 +3325,6 @@ static int tcp_ack(struct sock *sk, struct sk_buff *skb, int flag)
>  	return 1;
>  
>  no_queue:
> -	icsk->icsk_probes_out = 0;
> -
>  	/* If this ack opens up a zero window, clear backoff.  It was
>  	 * being used to time the probes, and is probably far higher than
>  	 * it needs to be for normal retransmission.





  reply	other threads:[~2008-07-24  5:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 13:35 [TCP] Probable bug in icsk_probes_out handling ? Eric Dumazet
2008-07-23 23:34 ` David Miller
2008-07-24  5:22   ` Eric Dumazet [this message]
2008-07-24  6:11     ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48881178.3080901@cosmosbay.com \
    --to=dada1@cosmosbay.com \
    --cc=davem@davemloft.net \
    --cc=ilpo.jarvinen@helsinki.fi \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).