• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMutableURLRequest: Keeping the connection open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableURLRequest: Keeping the connection open


  • Subject: Re: NSMutableURLRequest: Keeping the connection open
  • From: Thomas Engelmeier <email@hidden>
  • Date: Wed, 30 Mar 2011 19:06:34 +0200

On 30.03.2011, at 18:47, Quinn The Eskimo! wrote:

> On 30 Mar 2011, at 17:15, Thomas Engelmeier wrote:
>
>> I'm trying to prevent NSMutableURLRequest / NSURLConnection from closing an connection after roughly 2 secs.
>
> I presume this in on iOS.  On Mac OS X, the HTTP persistent connection cache timeout is much longer (about 30 seconds).
>
> I've investigated this is in some depth and, AFAICT, there's no way to force NSURLConnection to keep HTTP persistent connections around for longer.

It is on iOS - and I'm trying hard to get rid of the latency and overhead of the SSL renegotiation (many small packets based on UI interactions, i.e. every 5..20 sec, an array of heavy load servers, and the certificate etc. back and forth really makes the iOS clients look lamer than necessary).

What is the recommendation to rearchitect the communication?
CFStream with an socket kept open + CFHTTP?

TIA,
	Thomas _______________________________________________
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

References: 
 >NSMutableURLRequest: Keeping the connection open (From: Thomas Engelmeier <email@hidden>)
 >Re: NSMutableURLRequest: Keeping the connection open (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: NSMutableURLRequest: Keeping the connection open
  • Next by Date: Re: NSMutableURLRequest: Keeping the connection open
  • Previous by thread: Re: NSMutableURLRequest: Keeping the connection open
  • Next by thread: Re: NSMutableURLRequest: Keeping the connection open
  • Index(es):
    • Date
    • Thread