[En-Nut-Discussion] Dropped Connections - TCP Bug Fixed
Harald Kipp
harald.kipp at egnite.de
Fri Nov 28 21:02:45 CET 2003
During transmission Nut/Net may suddenly drop the
connection. Now the retransmission timer will be
disabled (set to zero) when the queue of NETBUFs
to be transmitted is empty.
--- net/tcpsm.c Fri Nov 28 20:06:01 2003
***************
*** 365,371 ****
/*
* Reset retransmit timer and wake up waiting transmissions.
*/
! sock->so_retran_time = (u_short)NutGetMillis();
NutEventPost(&sock->so_tx_tq);
}
--- 365,375 ----
/*
* Reset retransmit timer and wake up waiting transmissions.
*/
! if (sock->so_tx_nbq) {
! sock->so_retran_time = (u_short) NutGetMillis();
! } else {
! sock->so_retran_time = 0;
! }
NutEventPost(&sock->so_tx_tq);
}
Harald
P.S.: Sorry for the formatting diffs in this file again.
I'll try to become more disciplined on this and run
'indent -kr -nut -l 128' _each_ time before committing.
More information about the En-Nut-Discussion
mailing list