lwIP - A Lightweight TCP/IP stack - Bugs: bug #33956, Wrong error returned when calling...
You are not allowed to post comments on this tracker with your current authentication level.
bug #33956: Wrong error returned when calling accept() on UDP connections
| Submitter: | Kieran Mansley <kieranm> | ||
| Submitted: | Fri 05 Aug 2011 02:50:19 PM UTC | ||
| Category: | None | Severity: | 3 - Normal |
| Item Group: | None | Status: | Fixed |
| Privacy: | Public | Assigned to: | goldsimon |
| Open/Closed: | Closed | Planned Release: | None |
| lwIP version: | CVS Head | ||
|
Wed 24 Aug 2011 07:16:05 PM UTC, comment #3: |
Simon Goldschmidt <goldsimon> |
|
Wed 24 Aug 2011 07:13:23 PM UTC, comment #2: Updated summary to reflect the actual bug |
Simon Goldschmidt <goldsimon> |
|
Fri 05 Aug 2011 02:59:59 PM UTC, comment #1: My first comment is bogus: accept() isn't supported on a UDP connection. We should however return an error if someone does try that (e.g. EOPNOTSUPP)
|
Kieran Mansley <kieranm> |
|
Fri 05 Aug 2011 02:50:19 PM UTC, original submission:
In the following discussion a user points out that we never initialise acceptmbox for UDP netconns (and so also sockets) and this means you can't accept a connection:
|
Kieran Mansley <kieranm> |
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 7 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2011-08-24 | goldsimon | Status | Confirmed | Fixed | |
| Open/Closed | Open | Closed | |||
| Summary | Fix error returned when calling accept() on UDP connections | Wrong error returned when calling accept() on UDP connections | |||
| 2011-08-24 | goldsimon | Status | None | Confirmed | |
| Assigned to | None | goldsimon | |||
| Summary | Errors aren\'t returned when UDP connections call accept | Fix error returned when calling accept() on UDP connections | |||
| 2011-08-05 | kieranm | Summary | UDP connections can\'t accept as acceptmbox never set up | Errors aren't returned when UDP connections call accept |

Fixed by letting the netconn API return ERR_ARG and adding extra checks to the socket API to return EOPNOTSUPP.