[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51643935.6070201@wildgooses.com>
Date: Tue, 09 Apr 2013 16:52:21 +0100
From: Ed W <lists@...dgooses.com>
To: Eric Dumazet <eric.dumazet@...il.com>
CC: Linux Networking Developer Mailing List <netdev@...r.kernel.org>
Subject: Re: Modifying the exponential backoff on new connection SYN packets
On 09/04/2013 16:12, Eric Dumazet wrote:
> On Tue, 2013-04-09 at 06:48 -0700, Eric Dumazet wrote:
>
>> You'll have to change inet_csk_reqsk_queue_prune() in
>> net/ipv4/inet_connection_sock.c
>>
>> timeo = min(timeout << req->num_timeout, max_rto);
>> req->expires = now + timeo;
>>
>> Good luck !
> Oh well, this code is for SYNACK retransmits...
>
> For other retransmits, you'll have to take a look in
> net/ipv4/tcp_timer.c, around lines 475
>
> icsk->icsk_rto = min(icsk->icsk_rto << 1, TCP_RTO_MAX);
>
>
Hmm, I don't necessarily want to change the normal data timeouts, just
the initial SYN timeouts. How might I make detect that I'm in SYN state
and cap the timer appropriately? Apologies for beginner questions...
Thanks
Ed W
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists