You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Kelly, Terence" <kt...@exch.hpl.hp.com> on 2003/06/26 04:26:48 UTC

[users@httpd] pipelined requests

I looked in the Apache httpd FAQ and the 2.0
documentation for an answer to this question,
but found nothing definitive and little mention
of the issue.

Does Apache 2.0 handle pipelined requests?
If so, does it handle them well/efficiently?
For instance, if Apache httpd is running on
a 4-CPU machine and it receives four pipelined
requests to four different CGI scripts, are
those scripts executed simultaneously (assuming
that the machine is very lightly loaded when
the requests arrive)?

My impression from non-authoritative sources
(e.g., years-old material that I found out on the
Web via Google) is that Apache httpd has handled
pipelined requests since the late 1990s, but
there have been both functionality and efficiency
problems.  I haven't been able to determine which
of these problems remain.

A detailed description of how pipelined requests
are handled by the implementation would be very
helpful.

Thanks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] pipelined requests

Posted by Joshua Slive <jo...@slive.ca>.
I'm not really an expert on this area, but I can provide a little help.

On Wed, 25 Jun 2003, Kelly, Terence wrote:
> Does Apache 2.0 handle pipelined requests?

Yes.  It is a complete HTTP/1.1 implimentation.

> If so, does it handle them well/efficiently?

That's a rather vague question.

> For instance, if Apache httpd is running on
> a 4-CPU machine and it receives four pipelined
> requests to four different CGI scripts, are
> those scripts executed simultaneously (assuming
> that the machine is very lightly loaded when
> the requests arrive)?

My guess would be no.  In fact, I doubt that doing this would be in any
way reasonable for an http server.  For example, if the client requests
cgi1, cgi2, cgi3, and cgi4, in that order, and cgi4 starts to deliver
output before cgi1 is finished, what is the server supposed to do?  Queue
up all the output until the other three cgi scripts are finished?  Ouch!

No, in general pipelining was not designed to allow simultanous execution.
It was designed simply to minimize network latency by optimally filling up
network packets.

>
> My impression from non-authoritative sources
> (e.g., years-old material that I found out on the
> Web via Google) is that Apache httpd has handled
> pipelined requests since the late 1990s, but
> there have been both functionality and efficiency
> problems.  I haven't been able to determine which
> of these problems remain.

If you want any response to that, you'll need to provide more detailed
references.

> A detailed description of how pipelined requests
> are handled by the implementation would be very
> helpful.

I don't think you'll find any such thing.  But you can always look at the
code.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org