On Wed, Oct 25, 2006 at 10:21:26PM +0200, Graham Leggett wrote: > Joe Orton wrote: > > >There is no other acceptable solution AFAICS. Buffering the entire > >brigade (either to disk, or into RAM as the current code does) before > >writing to the client is not OK, polling on buckets is not possible, > >using threads is not OK, using non-blocking writes up the output filter > >chain is not possible. Any other ideas? > > I managed to solve this problem last night. > > Took a while and a lot of digging to figure it out, but in the end it is > relatively simple. > > The ap_core_output_filter helps us out:
I'm not sure how that is relevant. The core output filter writes to the socket directly - it can use non-blocking writes or whatever it likes to do that. The cache must write to the output filter chain. How do you propose to do non-blocking writes up the output filter chain? joe
