[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] [lwip] RTO by Retransmissions ?
From: |
Peder Kruse |
Subject: |
[lwip-users] [lwip] RTO by Retransmissions ? |
Date: |
Thu, 09 Jan 2003 00:39:11 -0000 |
This is a multi-part message in MIME format.
------=_NextPart_000_00CE_01C2915B.864697E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Wandering through the tcp.c source I started wondering:
const u8_t tcp_backoff[13] =3D
{ 1, 2, 4, 8, 16, 32, 64, 64, 64, 64, 64, 64, 64 };
tcp_slowtmr(void)
...
...
pcb->rto =3D ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[pcb->nrtx];
rto being an u16_t, will it not go zero by nrtx =3D=3D 4 at the latest ?
Peder
------=_NextPart_000_00CE_01C2915B.864697E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Wandering through the tcp.c source =
I started=20
wondering:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>const u8_t tcp_backoff[13] =
=3D<BR> =20
{ 1, 2, 4, 8, 16, 32, 64, 64, 64, 64, 64, 64, 64 };<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>tcp_slowtmr(void)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> pcb->rto =3D =
((pcb->sa >> 3)=20
+ pcb->sv) << tcp_backoff[pcb->nrtx];</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>rto being an u16_t, will it not go zero =
by nrtx =3D=3D=20
4 at the latest ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Peder</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>
------=_NextPart_000_00CE_01C2915B.864697E0--
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] [lwip] RTO by Retransmissions ?,
Peder Kruse <=