httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plüm, Rüdiger, VIS <ruediger.pl...@vodafone.com>
Subject AW: mod_proxy buffering small chunks
Date Mon, 06 Feb 2006 14:30:15 GMT


> -----Ursprüngliche Nachricht-----
> Von: Alan Gutierrez 
> 
> The proposed solution is to poll for chunks using 
> non-blocking I/O. When the socket returns EAGAIN, the 8K 
> buffer is flushed, and the socket is read with blocking I/O.

Thats the way the code is already designed in 2.2.x.

> 
> However, in the http code, regardless of the block mode flag, 
> the headers are read using blocking I/O. Furthermore, 
> somewhere deeper in the chain, when EAGAIN is detected the 
> success flag is returned instead. I'll provide more detail, 
> if this is not already well known.

This is the problem. The EAGAIN or better the mode handling in this
code path is somewhat broken.

> 
> Looks like this is going to be messy to fix. Any patches?

Not so far. I guess it requires some general changes that must
be carefully designed. But anyway, patch proposals are welcome :-).

Actually, the thing you want works with mod_proxy_ajp in 2.2.x.

Regards

Rüdiger

Mime
View raw message