[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #6930] Impelemt SO_LINGER
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #6930] Impelemt SO_LINGER |
Date: |
Wed, 23 May 2007 10:44:38 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #2, task #6930 (project lwip):
Re comment #1
As Jonathan said in bug #19157:
"SO_DONTLINGER is a non-standard option. I would be against its provision in
lwIP on that basis"
That's my point of view, too. Anyway, can't linger be turned off by calling
setsockopt(SO_LINGER) with l_onoff=0? Doesn't that achieve the same?
http://docs.hp.com/en/B2355-90136/ch03s01.html seems a little different from
http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/socket.h.html
because the opengroup specification allows l_linger to provide a time,
whereas hp only sets it on or off. Still, the HP link provides a good
explanation:
>>>
* If l_onoff is zero, close returns immediately, but any unsent data is
transmitted (after close returns).
* If l_onoff is nonzero and l_linger is zero, close returns immediately, and
any unsent data is discarded.
* If l_onoff is nonzero and l_linger is nonzero, close does not return until
all unsent data is transmitted (or the connection is closed by the remote
system).
In the default case (SO_LINGER is off), close is not blocked. The socket
itself, however, goes through graceful disconnect, and no data is lost.
<<<
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?6930>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #6930] Impelemt SO_LINGER, Simon Goldschmidt, 2007/05/23
- [lwip-devel] [task #6930] Impelemt SO_LINGER, Frédéric Bernon, 2007/05/23
- [lwip-devel] [task #6930] Impelemt SO_LINGER,
Simon Goldschmidt <=
- [lwip-devel] [task #6930] Impelemt SO_LINGER, Frédéric Bernon, 2007/05/23
- [lwip-devel] [task #6930] Impelemt SO_LINGER, Jonathan Larmour, 2007/05/23
- [lwip-devel] [task #6930] Impelemt SO_LINGER, Frédéric Bernon, 2007/05/23
- [lwip-devel] [task #6930] Impelemt SO_LINGER, Kieran Mansley, 2007/05/23
- [lwip-devel] [task #6930] Implement SO_LINGER, Simon Goldschmidt, 2007/05/24
- [lwip-devel] [task #6930] Implement SO_LINGER, Simon Goldschmidt, 2007/05/24