Nonblocking I/O and POLL_BUG

Per Hedeland per at erix.ericsson.se
Tue Oct 26 08:31:31 UTC 1999


Russ Allbery wrote:
>
>Dan Merillat <harik at chaos.ao.net> writes:
>
>> Although, I've never seen this OS bug myself... what platforms is it
>> known to occur on?  (select returning readable but read returning
>> -EAGAIN)
>
>I've not seen it anywhere other than on Solaris, but I've not looked for
>it very hard either.

Me too.:-)

>  (I've seen a different bug on Linux with 2.0.x
>kernels, namely a write to a socket that has been set nonblocking blocking
>anyway.  Solution there was to put a call to select in front of it.)

Ouch, that's a *much* worse bug! Could affect INN I guess, as
CHANwrite() seems to attempt more than one write after select in some
(weird:-) cases.

--Per


More information about the inn-workers mailing list