Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8572637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:03:58+00:00 2026-06-11T19:03:58+00:00

In iOS 5 only, an application I’m working on seems to drop requests when

  • 0

In iOS 5 only, an application I’m working on seems to drop requests when I send a large number of requests asynchronously. Large meaning still fairly small – testing with 30 right now

Each request uses it’s own NSURLConnection and is expected to return relatively quickly ( ie. 300 ms – 2s ). We also keep one connection open for a long period of time.

It seems like every 5th connection fails to leave the device. It certainly never reaches the server, and network debugging using Charles doesn’t even show the requests going out.

I’m wondering if anyone knows of a limit to the number of simultaneous open NSURLConnection objects and active requests?

It’s worth noting that we do not see this issue in iOS 4. It also seems that if we kill our long-lived connection, then we don’t drop every 5th request any more.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:03:59+00:00Added an answer on June 11, 2026 at 7:03 pm

    NSOperationQueue is the best way to manage this problem. In a nutshell, you wrap your NSURLConnection in an NSBlockOperation, then add it to the queue. The queue allows you to set various properties such as the maximum number of simultaneous connections, and also give you an easy way to cancel queued operations.

    There is a good intro to this design pattern in a WWDC video (2012) called “Building Concurrent User Interfaces on iOS”.

    In iOS 5 you can use the following call to start an NSURLConnection and add it to an NSOperationQueue

    + (void)sendAsynchronousRequest:(NSURLRequest *)request queue:(NSOperationQueue *)queue completionHandler:(void (^)(NSURLResponse*, NSData*, NSError*))handler

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working in an iOS application which uses libXML2 to read XML retrieved from
I'm developing a large scale application for iOS 5 using ARC in xcode. The
I am building a read-only iOS application that will ship with a default SQLite
My application only gets image and it's metadata from ios device using ALAssetsLibrary .
How to build and archive or archive only iOS application? I want to archive
My app (iPad;iOS 6) is a landscape only application, but when I try using
On iOS 5 I Have a UITableViewController set to Static Cells. I only need
I got strange behavior for iOS App. My App crashes only when it is
When I launch my app on iOS 5.1, on a device (only tested on
My iOS Application has been in review, but was rejected regarding the iOS Data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.