Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTP Pipelining



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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden


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: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >HTTP Pipelining (From: Tomas Franzén <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.