mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Minor fix: bug #28555: Retransmission timer only stopped if TCP_QUEUE_OOSEQ==1
This commit is contained in:
parent
8596bb7e7e
commit
59005b544f
@ -1237,14 +1237,14 @@ tcp_pcb_purge(struct tcp_pcb *pcb)
|
|||||||
if (pcb->ooseq != NULL) {
|
if (pcb->ooseq != NULL) {
|
||||||
LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
|
LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
|
||||||
}
|
}
|
||||||
|
tcp_segs_free(pcb->ooseq);
|
||||||
|
pcb->ooseq = NULL;
|
||||||
|
#endif /* TCP_QUEUE_OOSEQ */
|
||||||
|
|
||||||
/* Stop the retransmission timer as it will expect data on unacked
|
/* Stop the retransmission timer as it will expect data on unacked
|
||||||
queue if it fires */
|
queue if it fires */
|
||||||
pcb->rtime = -1;
|
pcb->rtime = -1;
|
||||||
|
|
||||||
tcp_segs_free(pcb->ooseq);
|
|
||||||
pcb->ooseq = NULL;
|
|
||||||
#endif /* TCP_QUEUE_OOSEQ */
|
|
||||||
tcp_segs_free(pcb->unsent);
|
tcp_segs_free(pcb->unsent);
|
||||||
tcp_segs_free(pcb->unacked);
|
tcp_segs_free(pcb->unacked);
|
||||||
pcb->unacked = pcb->unsent = NULL;
|
pcb->unacked = pcb->unsent = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user