lwip-devel
[Top][All Lists]
Advanced

[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


From: Jonathan Larmour
Subject: [lwip-devel] [bug #9455] The sockets API does not correctly inform a process that a RST has been received
Date: Tue, 17 Apr 2007 14:35:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 Fedora/1.5.0.10-1.fc5 Firefox/1.5.0.10

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:

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

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





reply via email to

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