You did, but it isn't enabled by default, it doesn't provide full protection against a race, and it hurts performance. Do you mean a previous blocking read on some systems makes poll/select return on the fd even when the data has been read out already?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-03-19 22:21: Subject: I/O callbacks in blocking mode
Didn't I add a flag to always do "peek" in the read callback?
I needed it in a system that switched between blocking calls to read and non-blocking read callbacks, and it was possible to get a read callback after the socket was emptied with a previous blocking read. I'm sure there's a discussion about the problem in Infokom.
/ Mirar