]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/core/tcp_out.c
mutex protection fixed; some not well working tries to make !NO_SYS version working
[pes-rpp/rpp-lwip.git] / src / core / tcp_out.c
index b9fc339eb15f386c1eb0b360b40b0e2b1b5b7069..6541e79ac8dbb6d1587e65ee539cf2319275ea3b 100644 (file)
@@ -1119,6 +1119,17 @@ tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb)
 
     LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_output_segment: rtseq %"U32_F"\n", pcb->rtseq));
   }
+
+    /* XXX: patch from web
+     * If the reference count is more than 1, we assume the driver still
+     * has a reference and it is still queued to be sent from before,
+     * so we don't need to retransmit.
+     */
+/*    if (seg->p->ref > 1) {
+      return;
+    }*/
+
+
   LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n",
           htonl(seg->tcphdr->seqno), htonl(seg->tcphdr->seqno) +
           seg->len));