[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #9455] The sockets API does not correctly inform a pro
[lwip-devel] [bug #9455] The sockets API does not correctly inform a process that a RST has been received
Tue, 17 Apr 2007 14:35:38 +0000
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:22.214.171.124) Gecko/20070223 Fedora/126.96.36.199-1.fc5 Firefox/188.8.131.52
Follow-up Comment #4, bug #9455 (project lwip):
Frederic's point was that sockets.c already returns ECONNRESET for ERR_RST.
As far as I know, this is what all other systems do in the same situation,
and so is a better error code than EPIPE.
As far as I can tell, send/write use netconn_write, which will return
conn->err if it isn't ERR_OK. So ERR_RST should be returned, causing
ECONNRESET to in turn be returned. I admit I haven't tried experimenting.
BTW, I believe EPIPE is when the local end has been closed.
Reply to this item at:
Message sent via/by Savannah