httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <>
Subject Re: How to access client socket from a protocol handler
Date Fri, 22 Oct 2010 22:33:55 GMT
On Sat, Oct 23, 2010 at 00:01, Mike Meyer
<> wrote:
> I use that to get the socket so I can poll for it to have data in it,
> and do other things while I'm waiting. Is there a better alternative
> for that, or is this an exception?

You could do it through apr_bucket_read(APR_NONBLOCK_READ) but polling
on the socket is probably simpler, especially if you are polling on
more than one fd.

Just don't read or write data directly, that would bypass the filter
chain (and break logging, for starters).

View raw message