Then the socket has to be set blocking after select() has finished. If that happens due to a race then the check isn't effective since the race can just as well occur after it and still cause a later read to block. I'd still like to have some sort of safeguard against blocking operations from the backend.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-03-19 13:49: Subject: I/O callbacks in blocking mode
The defenition of select is that the bit in the FD-set is set when read() can be called _without_blocking_ according to the manpage.
/ Per Hedbor ()