issues
search
gvanem
/
Watt-32
Watt-32 TCP/IP library and samples.
https://www.watt-32.net/
18
stars
8
forks
source link
More improvements in select.c
#96
Closed
jwt27
closed
8 months ago
jwt27
commented
8 months ago
Some more tweaks to
poll()
/
select_s()
:
If we get interrupted by a signal, but already have one or more ready sockets, that should not be an error.
Yield should happen at the end of a loop (only if there is no reason to return yet). Also, no need to
tcp_tick()
twice in one loop.
Then, I think the short-timeout hack for WinXP can be removed. If yield does stall, then the next loop will return some result.
Some more tweaks to
poll()
/select_s()
:tcp_tick()
twice in one loop.