• 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
Prevent NSURLConnection retry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prevent NSURLConnection retry


  • Subject: Prevent NSURLConnection retry
  • From: Jeff Johnson <email@hidden>
  • Date: Tue, 29 Nov 2011 12:31:31 -0600

I'm using NSURLConnection to update song information on a SHOUTcast server. This is done via an HTTP GET request with the path format "/admin?song=". Unfortunately, SHOUTcast is very poorly designed, so it does not give an HTTP response to the request. Instead, it simply does ACK and then FIN. This seems to cause NSURLConnection to retry twice (on different source ports) before giving up. The result is that the song information is updated three times on the SHOUTcast server instead of once, because there are three GET requests.

Is there any way to prevent NSURLConnection from retrying after the connection is closed?

-Jeff

 _______________________________________________
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: Prevent NSURLConnection retry
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
    • Re: Prevent NSURLConnection retry
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSNetService no longer "wakes up" bluetooth in iOS5
  • Next by Date: Re: Prevent NSURLConnection retry
  • Previous by thread: Re: NSNetService no longer "wakes up" bluetooth in iOS5
  • Next by thread: Re: Prevent NSURLConnection retry
  • Index(es):
    • Date
    • Thread