apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Does apr_pollset_poll( ... ) block on non-blocking sockets?
Date Mon, 04 Oct 2004 13:46:42 GMT
On Sun, 3 Oct 2004 19:52:36 -0600, David Barrett <dbarrett@quinthar.com> wrote:
> Is the function "apr_pollset_poll( )" supposed to block, even on
> non-blocking sockets?  I ask because I would like it to, even though it
> appears to not.  The docs say this about the function:
> 
>         Block for activity on the descriptor(s) in a pollset
> 
> Ideally I would like to *not* block when reading or writing, but I *do* want
> to block while polling with a timeout.  Am I doing something wrong, or is it
> working as designed?

docs should be fixed; whether or not it blocks is controlled solely by
the timeout parameter

Mime
View raw message