[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] RTO by Retransmissions ?
From: |
leon . woestenberg |
Subject: |
[lwip-users] Re: [lwip] RTO by Retransmissions ? |
Date: |
Thu, 09 Jan 2003 01:22:47 -0000 |
Hello,
I think Peder Kruse did indeed found a bug.
Can some of the TCP people confirm this?
{ 1, 2, 4, 8, 16, 32, 64, 64, 64, 64, 64, 64, 64 };
must be
{0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6 };
Leon.
----
Wandering through the tcp.c source I started wondering:
const u8_t tcp_backoff[13] =
{ 1, 2, 4, 8, 16, 32, 64, 64, 64, 64, 64, 64, 64 };
tcp_slowtmr(void)
...
...
pcb->rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[pcb->nrtx];
rto being an u16_t, will it not go zero by nrtx == 4 at the latest ?
[This message was sent through the lwip discussion list.]