• 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
NSURLSession timeouts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLSession timeouts


  • Subject: NSURLSession timeouts
  • From: Michael Brian Bentley <email@hidden>
  • Date: Mon, 11 Aug 2014 11:48:30 -0700

I've been working with NSURLSession and NSURLSessionDownloadTask to download the syslog files from a device connected by WIFI only.

The process of downloading the files appears to be so slow that it usually isn't able to grab a copy of the first syslog file before new log entries are appended to the file.

We also regularly see download timeouts. When the file download times out, it attempts to resume. We usually see a resume at offset 0, we believe because the first syslog file is live and has been modified.

We started with downloading all the syslog files concurrently, but switched to downloading the syslog files sequentially, to try and resolve problems with downloading one file at a time at a reasonably fast rate.

On the device we are downloading the syslog files from, we added EnableSendfile off to httpd.conf and restarted apache, as per:

http://abitwiser.wordpress.com/2011/02/24/virtualbox-hates-sendfile/

The theory was to download one file at a time reasonably fast from a potentially slow device. The bottom line is that we have trouble with downloading one file because thre are gaps of time inbetween received bytes, and we encounter NSURLSession timeouts.

When I download one of these files by just using a browser, curl or wget, I don't appear to run into issues with timeouts. Altho the downloads are slow, they do complete over time.

Any recommendations?

-Mike
_______________________________________________
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


  • Follow-Ups:
    • Re: NSURLSession timeouts
      • From: Michael Brian Bentley <email@hidden>
  • Prev by Date: NSURLSessionTask after uninstall?
  • Next by Date: Re: NSURLSession timeouts
  • Previous by thread: Re: NSURLSessionTask after uninstall?
  • Next by thread: Re: NSURLSession timeouts
  • Index(es):
    • Date
    • Thread