httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <>
Subject Re: pipelining and chunking
Date Tue, 28 Jan 1997 01:09:26 GMT
On Mon, 27 Jan 1997, Dean Gaudet wrote:

> So Henrik and I have concluded that the problem is in the libwww library
> and not in Apache.  He's working on that and will re-do the benchmarks
> when he's got it fixed.

So the missing bytes are libwww's fault, not Apache's? Or is this
talking about something else?

> In the meanwhile, I hope to get a chance later this week to use the libwww
> robot to test chunking.  I'd like to implement the performance tweak I was
> talking about, is there any chance of it getting into 1.2?  Here's the
> outline:

Probably there is (a chance).

> - add char *chunk_header to the buff structure.  If non-null then this points
>   to the first byte of a chunk header in the buffer.  This is set by the
>   switch to chunking, and at that time enough space is reserved for the
>   header (you know how big it'll be at that time).  Since the chunk trailer
>   requires two bytes I'll also decrease bufsiz by two at this time (or
>   implement some other kludge).
> - when flushing the buffer, twiddle chunk_header if required, tack on the
>   chunk trailer, flush away.  Start off a fresh buffer with a new
>   chunk_header, and outcnt set appropriately.
> This essentially eliminates all the bflush()s that we have left.  It's
> not as elegant as layered i/o, but it should do the job.

I'm still not quire sure exactly what you mean by all this. I'd be
much happier if I could see a patch.

Alexei Kosut <>      The Apache HTTP Server

View raw message