apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <...@manyfish.co.uk>
Subject blocking bucket reads on non-blocking sockets
Date Fri, 07 May 2004 00:29:29 GMT
The mod_perl test suite started failing on platforms where the
c->client_socket is now left with O_NONBLOCK set.

As I read it, the reason is that the socket bucket ->read function does
not attempt to handle being called with APR_BLOCK_READ on a non-blocking
socket (and can fail with EAGAIN etc in that case); whereas it does
handle being called with APR_NONBLOCK_READ on a blocking socket. 

This seems a little counter-intuitive; is it by design, or is it a bug?

Regards,

joe

Mime
View raw message