Re: HTTP Pipelining
Re: HTTP Pipelining
- Subject: Re: HTTP Pipelining
- From: Becky Willrich <email@hidden>
- Date: Mon, 12 Dec 2005 10:26:17 -0800
NSURLConnection uses persistent connections (that's what the
"Connection: keep-alive" header means), but it does not pipeline
because of the large number of servers in the wild that choke on
pipelined transactions.
CFHTTPStream using persistent connections does pipeline by default;
maybe you can use that? See CFNetwork/CFHTTPStream.h for details.
REW
On Dec 10, 2005, at 2:20 AM, Tomas Franzén wrote:
Hi,
(I posted this message on the Cocoa list, but I didn't get any
replies, so I figured this list might be more appropriate.)
I'm planning to write an app in Cocoa that needs to download a lot
of HTTP resources as quickly as possible. Hence, I would like to use
pipelining to use one connection for multiple requests (for HTTP 1.1
servers). I noticed that NSURLConnection sends the header
"Connection: keep-alive" which would suggest that it does implement
pipelining.
Does NSURLConnection use pipelining? If so, how do I use it (or is
it automatic somehow)?
If not, what alternative ways of fetching pipelined HTTP resources
do you recommend?
Thanks!
Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden