Hm? read() never blocks when data is available. Even on blocking sockets.
/ Per Hedbor ()
Previous text:
2003-03-19 14:15: Subject: I/O callbacks in blocking mode
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