]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/core/tcp_in.c
Tried to fix bug #32417 ("TCP_OVERSIZE seems to have problems with (fast-)retransmiss...
[pes-rpp/rpp-lwip.git] / src / core / tcp_in.c
index df7c33dd9792d1ef7b3803ecec0710c595c76923..82ccedffce4d5e4a74a53739530b8e0e8cab3ac4 100644 (file)
@@ -1090,6 +1090,11 @@ tcp_receive(struct tcp_pcb *pcb)
 
       next = pcb->unsent;
       pcb->unsent = pcb->unsent->next;
+#if TCP_OVERSIZE
+      if (pcb->unsent == NULL) {
+        pcb->unsent_oversize = 0;
+      }
+#endif /* TCP_OVERSIZE */ 
       LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"U16_F" ... ", (u16_t)pcb->snd_queuelen));
       LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= pbuf_clen(next->p)));
       /* Prevent ACK for FIN to generate a sent event */