lwIP - A Lightweight TCP/IP stack - Bugs: bug #27709, conn->err race condition on...
You are not allowed to post comments on this tracker with your current authentication level.
bug #27709: conn->err race condition on netconn_recv() timeout
Submitter: | Simon Goldschmidt <goldsimon> | ||
Submitted: | Thu 15 Oct 2009 02:23:01 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Fixed |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | 1.3.1 |
Sun 17 Jan 2010 04:21:46 PM UTC, comment #5: |
Simon Goldschmidt <goldsimon> |
Thu 15 Oct 2009 04:33:04 PM UTC, comment #4:
|
Simon Goldschmidt <goldsimon> |
Thu 15 Oct 2009 03:25:57 PM UTC, comment #3: I think I can see why netconn_recv is different: all the other netconn functions return an err_t, whereas netconn_recv returns a buffer, so has to use conn->err to indicate error status.
|
Kieran Mansley <kieranm> |
Thu 15 Oct 2009 03:22:54 PM UTC, comment #2: I don't think we've really fixed this - just made the race more unlikely.
|
Kieran Mansley <kieranm> |
Thu 15 Oct 2009 02:34:09 PM UTC, comment #1: Fixed by directly returning when sys_arch_mbox_fetch times out. Thanks for reporting, David.
|
Simon Goldschmidt <goldsimon> |
Thu 15 Oct 2009 02:23:01 PM UTC, original submission:
This was reported by David Shmelzer on lwip_users:
I upgraded to 1.3.1 and it fixed the zero timeout problem I was having. Thanks.
I traced the problem to conn->err being assigned a value in separate
|
Simon Goldschmidt <goldsimon> |
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 |
---|---|---|---|---|---|
2010-01-23 | goldsimon | Open/Closed | Open | Closed | |
2010-01-17 | goldsimon | Status | None | Fixed | |
2009-10-15 | kieranm | Planned Release | 1.3.2 | 1.4.0 | |
2009-10-15 | kieranm | Status | Fixed | None | |
Open/Closed | Closed | Open | |||
2009-10-15 | goldsimon | Status | None | Fixed | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
Fixed by changing netconn_recv() to return err_t.