lwIP - A Lightweight TCP/IP stack - Bugs: bug #49848, Non-blocking socket emit a sock...
You are not allowed to post comments on this tracker with your current authentication level.
bug #49848: Non-blocking socket emit a sock error while read return EWOULDBLOCK
Submitter: | Wen Xichang <wenxichang> | ||
Submitted: | Thu 15 Dec 2016 10:00:27 AM UTC | ||
Category: | sockets/netconn | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Fixed |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | 2.0.0 |
Jump to the original submission
Thu 15 Dec 2016 09:34:37 PM UTC, comment #6: |
Simon Goldschmidt <goldsimon> |
Thu 15 Dec 2016 08:16:10 PM UTC, comment #5: Thanks David, this is exactly the input I have been waiting for to continue on task #13922! |
Simon Goldschmidt <goldsimon> |
Thu 15 Dec 2016 03:43:30 PM UTC, comment #4: FWIW: SO_ERROR returns a "pending error" which is a precisely defined term; see sections 2.10.10, 2.10.15, and 2.10.16 of http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html . In effect, SO_ERROR should only ever return an error that has not been reported as part of a socket call. As such it can never legitimately return EWOULDBLOCK. |
David van Moolenbroek <dcvmoole> |
Thu 15 Dec 2016 03:27:45 PM UTC, comment #3: Alright. Can you point me to some spec or documentation indicating this change is correct? Beacause reading opengroup.org, I saw nothing about which errors should be in the socket and which global.
|
Simon Goldschmidt <goldsimon> |
Thu 15 Dec 2016 03:16:01 PM UTC, comment #2: that's exactly what i mean.
|
Wen Xichang <wenxichang> |
Thu 15 Dec 2016 11:47:44 AM UTC, comment #1: So what exactly do you suggest? I can't tell from your post.
|
Simon Goldschmidt <goldsimon> |
Thu 15 Dec 2016 10:00:27 AM UTC, original submission:
if (netconn_is_nonblocking(sock->conn) && (sock->rcvevent <= 0)) {
|
Wen Xichang <wenxichang> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-12-15 | goldsimon | Status | Need Info | Fixed | |
Open/Closed | Open | Closed | |||
2016-12-15 | goldsimon | Status | None | Need Info | |
Assigned to | None | goldsimon | |||
2016-12-15 | wenxichang | Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-f8d8.
Corresponding source code
I've fixed this special issue for Wen to work with 2.0.1 and added task #14275 as a reminder for cleanup in this area (which is highly related to task #13922: Remove fatal error handling).
Thanks for reporting