apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject non-blocking stdin on windows
Date Thu, 27 Sep 2007 13:24:16 GMT
httpd's mod_ext_filter sets up a child process with a stdin of
APR_CHILD_BLOCK, but on windows the parent side of the stdin pipe
defaults to a "non-blocking pipe with an infinite (-1) timeout".  Such
a pipe in unix has its apr_file_pipe_timeout() flipped to 0 during

Net, a subsequent apr_file_read() behaves differently on the two
platforms when no data is available w/o the explicit
apr_file_pipe_timeout_set(foo, 0) call.

While the API might be a little ambiguous, and the caller can
explicitly set the timeout, is this a discrepancy APR should

I don't know if to what extent this intersects (or muddies) the
current windows filehandle work.

Eric Covener

View raw message