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 7498657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:33:04+00:00 2026-05-29T19:33:04+00:00

OK – let’s rephrase this whole question shall we? Is there any way to

  • 0

OK – let’s rephrase this whole question shall we?

Is there any way to tell if iOS is holding onto an NSURLConnection after it has finished & returned it’s data?

I’ve got 2 NSURLConnections I’m instantiating & calling into a server with. The first one initiates the connection with the server and then goes into a COMET style long-polling wait while another user interacts with the request. The second one goes into the server and triggers a cancel mechanism which safely ends the first request and causes both to return successfully with a “Cancelled by you” message.

In the happy path case the Cancel button will never be clicked. But it’s possible to click it and exit the current action.

This whole scenario works GREAT once. And then never works again (until the app is reset).

It’s as though the first time thru one of the connections is never released and we are from then on limited to only a single connection because one of them is locked.


BTW I’ve tried NSURLConnection, AFNetwork, MKNetworkKit, ASIHTTPRequest – no luck what-so-ever with any other frameworks. NSURLConnection should do what I want. It’s just … not letting go of one of my connections.

  • 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-05-29T19:33:07+00:00Added an answer on May 29, 2026 at 7:33 pm

    So unfortunately with the lack of a real solution to this issue being found in all my testing I’ve had to implement simple polling to resolve the issue.

    I’ve also had to implement iOS only APIs on the server.

    What this comes down to is an API to send up a command and put it into a queue on the server, then using an NSTimer on the client to check the status of the of the queued item on a regular interval.

    Until I can find out how to make multiple connections on iOS with long-polling this is the only working solution. Once I have a decent amount of points I’ll gladly bounty them away for a solution to this 🙁

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

Sidebar

Related Questions

Possible Duplicate: replace all occurrences in a string I found this question/answer: Use JavaScript
My NSXMLParser breaks on this string: <title>AAA &#8211; BCDEFGQWERTYUIO</title> I parsed it in this
This could be a duplicate question, but I have no idea what search terms
i have this code: <?php $valid_ext = array(pdf, doc); $args = array( 'post_type' =>
An extension to my previous question: Text cleaning and replacement: delete \n from a
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I would like to count the length of a string with PHP. The string
I've got the following login script.. <?php $name = $_POST[name]; $password = $_POST[password]; $query
So to start, I have an array of XML files. These files need to

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.