HTTP 1.1 pipelining
David Stockwell
winexpert at hotmail.com
Tue May 18 07:20:56 EDT 2004
Hi Ivan,
Awhile back I looked into the HTTP 1.1 protocol and what I understood
pipelining to be all about, is the ability of a client be able to handle
multiple requests on for a connection at a time. An example pipeline might
be:
client sends a request to GET a page from the server.
Server sends page to client.
client parses the page.
client issues several GET requests for files (say perhaps images that would
be displayed in that page) without waiting for the response.
Server eventually sends all the requested files to client.
If the server doesn't support pipelining then the transaction would have to
be this way (to do the same thing)
client sends a request to GET a page from the server.
Server sends page to client.
client parses the page.
client sends a request to GET a file from the server.
server sends the file to client.
client renders the file (image).
client sends a request to GET a file from the server.
server sends the file to client.
client renders the file (image).
.
. repeat get/response until done.
.
Now if a gateway is involved and caching is taking place it gets a bit more
complicated.
Good Luck!
David
-------
Cell: http://cellphone.duneram.com/index.html
Cam: http://www.duneram.com/cam/index.html
Tax: http://www.duneram.com/index.html
>From: Ivan Voras <iv at an.voras.fer.hr>
>To: python-list at python.org
>Subject: Re: HTTP 1.1 pipelining
>Date: Tue, 18 May 2004 12:59:14 +0200
>
>JanC wrote:
>
>>
Ivan Voras <ivoras at __geri.cc.fer.hr> schreef:
>>
>>
>>>I don't think this is how HTTP/1.1 pipelining works. It is still a
>>>request-response protocol - the only "pipelining" is in the fact that it
>>>doesn't require a separate connection session for each request-response
>>>pair.
>>
>>
>>"Pipelining" != "Connection: Keep-Alive"
>>
>><http://www.mozilla.org/projects/netlib/http/pipelining-faq.html>
>
>Thank you - it's clearer to me now!
>
>But, isn't this a direct consequence of keep-alive?
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the Python-list
mailing list