lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #51531] getsockopt/SO_ERROR not returning value stored


From: Joel Cunningham
Subject: [lwip-devel] [bug #51531] getsockopt/SO_ERROR not returning value stored in errno
Date: Mon, 24 Jul 2017 11:17:02 -0400 (EDT)
User-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 Mobile/14G60 Safari/602.1

Follow-up Comment #2, bug #51531 (project lwip):

David,

Thanks for clarifying the behavior of SO_ERROR. I read over through Steven's
Unix Networking Programmig Vol 1 and agree that from what he describes it only
stores asynchronous errors that occur outside of application function calls
and not as analog to errno. Interestingly on Solaris he even mentions that
SO_ERROR only migrates the pending error to errno and does not return the
value in th opt field

Our UPGRDING file needs a description of this required integration as existing
LwIP applications are going to be broken. This also means that errno is no
longer optional for the sockets API. Might want to audit the options to since
errno was once optional and applications could get by with using SO_ERROR only

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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