apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <...@manyfish.co.uk>
Subject Re: blocking bucket reads on non-blocking sockets
Date Mon, 17 May 2004 13:09:57 GMT
On Mon, May 17, 2004 at 01:45:03PM +0100, Joe Orton wrote:
> On Fri, May 14, 2004 at 05:36:01PM -0700, Stas Bekman wrote:
> > So what's the solution here?
> 
> I'd hoped some friendly buckets guru would step in here :) I guess if
> it's correct to solve this at bucket-level, the solution is to make
> socket_bucket_read() check whether the socket is non-blocking on each
> call, and temporarily set the timeout to -1 if it is...

Hmmm.  http://thread.gmane.org/gmane.comp.apache.apr.devel/4554 says
that the only timeout setting which works consistently on both Win32 and
Unix for sockets with APR_SO_NONBLOCK set is timeout = 0, so maybe that
doesn't work so well.



Mime
View raw message