lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #33962] TF_FIN not always set after FIN is sent


From: Stephane Lesage
Subject: [lwip-devel] [bug #33962] TF_FIN not always set after FIN is sent
Date: Mon, 22 Aug 2011 12:36:40 +0000
User-agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)

Follow-up Comment #3, bug #33962 (project lwip):

>In tcp_send_fin(),
>pcb->unsent is checked and the last segment in this queue gets the FIN flag
>so this should work

Hi Simon,
the TCP_FIN flag is indeed set in the *SEGMENT* and will be set in the last
output packet. The problem is not here.
The issue is that the TF_FIN flag is not set in the *PCB*,
so that Nagle algorithm is not disabled and tcp_output cannot send the
remaining data immediately.

The solution is to add: pcb->flags |= TF_FIN
Maybe it's too trivial, but it works for Cameron and me.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?33962>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]