|
From: | Simon Goldschmidt |
Subject: | [lwip-devel] [bug #27215] TCP sent() callback gives leagin and trailing 1 byte len (SYN/FIN) |
Date: | Fri, 16 Oct 2009 14:31:32 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 |
Update of bug #27215 (project lwip): Status: None => In Progress Assigned to: None => goldsimon _______________________________________________________ Follow-up Comment #3: The attached patch tries to solve this bug by using this condition: if ((pcb->acked != 1) || ((old_state != SYN_RCVD) && (pcb->state != FIN_WAIT_2) && (pcb->state != TIME_WAIT))) { TCP_EVENT_SENT(pcb, pcb->acked, err); } thus not calling the sent callback if one byte was acked in a specific state (or state before calling tcp_process). Tested with the httpd and a raw api tcp client. Any objections? _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?27215> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |