Bill Stoddard wrote: >>Brian Pane writes: >> > Blaise Tarr wrote: >> > >> > >With 2.0.40 content coming from mod_proxy and mod_cgi is no longer >> > >streamed to the client but sent in one big chunk. >> > >> > Here's a patch that removes the buffering. Let me know if >> > it solves the proxy streaming problem. >> >>Thanks Brian. It's much better now, but it still buffers in 8K chunks >>as opposed to the 2.0.32 behavior where there was no apparent >>buffering. >> >>thanks, >> >>Blaise >> >> >> > >I notice that the code I put in to do non-blocking reads on CGI pipes has >been removed (or moved from where it lived in the c-l filter). >
The nonblocking read code is still there, at least in the cvs head. My patch removes this, though, and instead flushes the data prior to the pipe bucket and then does a blocking read. To solve the problem that Blaise noted, I believe we'll have to make the content_length filter stop reading buckets altogether (which I think is absolutely the right thing to do, but we'll have to find some other place to compute r->bytes_sent). Brian
