lwIP - A Lightweight TCP/IP stack - Bugs: bug #27116, select() does not appear to work...
You are not allowed to post comments on this tracker with your current authentication level.
bug #27116: select() does not appear to work with timeval of 0
Submitter: | Cathal <cobroin> | ||
Submitted: | Mon 27 Jul 2009 08:22:16 AM UTC | ||
Category: | sockets/netconn | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Works For Me |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | 1.1.1 |
Tue 28 Jul 2009 12:07:33 PM UTC, comment #4: |
Stephane Lesage <slesage> |
Mon 27 Jul 2009 08:26:36 PM UTC, comment #3: I am also using version 5.0 update 6 of Visual DSP++ though.
|
Cathal <cobroin> |
Mon 27 Jul 2009 02:05:58 PM UTC, comment #2: Sounds like this has already been fixed. I'll resolve as such, but please re-open if current versions of lwIP don't do as you expect. |
Kieran Mansley <kieranm> |
Mon 27 Jul 2009 08:44:33 AM UTC, comment #1: Hi,
|
Stephane Lesage <slesage> |
Mon 27 Jul 2009 08:22:16 AM UTC, original submission:
when a timeval structure has tv_sec and tv_usec set to 0 and then is passed as the fifth argument for select() any fd_set structure also passed is always all set to 0, and 0 is always returned.
|
Cathal <cobroin> |
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 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-07-27 | kieranm | Status | None | Works For Me | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
I'm using the little function I posted earlier ReadTimeOut(sock, timeout); (because the socket option was not available back then)
- UDP socket
- TCP socket
- TCP listening socket
With timeout >= 0, and it works in all cases.
I think you had a problem when upgrading VDSP, because you should have at least version 1.2.0.
I will send you the little adaptation I made to use 1.3.0 with VDSP.
BTW: my first name is Stephane with a silent E, and no I, I'm not a girl ;-)