lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #26062] FIN_WAIT_2 state following tcp_close should ti


From: Jeff Barber
Subject: [lwip-devel] [bug #26062] FIN_WAIT_2 state following tcp_close should timeout eventually
Date: Mon, 19 Oct 2009 13:04:11 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 GTB5

Follow-up Comment #6, bug #26062 (project lwip):

I think this is actually a subtle API change that should be considered
carefully. 

Currently we have a tcp_close that acts like a shutdown(SHUT_WR) and we have
nothing that acts like close().  If you simply modify the timer handling,
we'll then have tcp_close acting like close(), but then we won't have a
shutdown(SHUT_WR).

As it stands now, a NO_SYS application can rely on receiving a final recv
callback with NULL pbuf argument indicating that the remote end sent a FIN. 
Some applications may be relying on this behavior for cleanup of application
state (mine does, for example).

IMO it would be preferable to have both a close and a shutdown as the two are
distinct and both have valid uses.  Naively, it seems like a simple flag would
be sufficient to distinguish the two cases but I could be overlooking many
details.

(Yes, I know that I originally filed this bug report but my understanding has
become more, er, nuanced since April. :-)


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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