httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: 2.4.17 test failure for mod_nntp_like_ssl when mod_http2 is loaded
Date Mon, 12 Oct 2015 12:10:48 GMT
On 11 Oct 2015, at 7:00 PM, Stefan Eissing <stefan.eissing@greenbytes.de> wrote:

> Ok, analyzed the code. Here is what seems to be happening:
> 
> - mod_http2, in the connection hook, does a blocking, speculative read to
>  a) make sure the ALPN has been triggered

Looking at the code inside the event MPM that calls ap_run_process_connection(), it looks
like you can just do a non blocking read, and if you haven’t received enough bytes, return
DECLINED and expect to be called again.

This presupposes that other connection filters aren’t trying to be excessively cleaver by
stealing your connection away from you and then responding to your data (for example by error-ing
out), which they may do by doing blocking reads.

Regards,
Graham
—


Mime
View raw message