Re: Cause of kCFNetServiceErrorUnknown?
Re: Cause of kCFNetServiceErrorUnknown?
- Subject: Re: Cause of kCFNetServiceErrorUnknown?
- From: Mark Pauley <email@hidden>
- Date: Wed, 29 Feb 2012 22:41:51 -0800
Can you provide a TCP dump? I suspect you're getting a 3xx response after a non-idempotent request, probably a post. You may need to grab the new location manually from the headers and start a new request with a fresh upload stream to the redirection target.
On Feb 29, 2012, at 11:53 AM, "Van Tol, Ladd" <email@hidden> wrote:
> On Feb 27, 2012, at 4:03 AM, Quinn The Eskimo! wrote:
>
>>
>> On 24 Feb 2012, at 19:20, Van Tol, Ladd wrote:
>>
>>> Anyone know potential causes of kCFNetServiceErrorUnknown (-72000) when using CFNetwork directly to fetch HTTP URLs?
>>
>> Just FYI, that error is NSNetServicesUnknownError.
>>
>> Do you use CFNetService or NSNetService directly?
>
> No use of CFNetService or NSNetService.
>
>> What API are you using to "fetch HTTP URLs"?
>
> I'm using CFReadStreamCreateForHTTPRequest and friends.
>
> It appears that we are getting a kCFStreamEventErrorOccurred callback, and CFReadStreamCopyError gives us this error.
>
> I'm not able to reproduce it, but our diagnostic logging clearly shows it happening in production.
>
>> Based on a quick check I can't see any place this error code is /ever/ generated, which I'll admit is a little odd. If you give me an API to focus on, I'll look in more detail.
>
> Huh.
>
> This error started with iOS 5.0, and appears to come back most commonly on Akaimized resources.
>
> We are also seeing error -72004, also starting with iOS 5.0.
>
> Example host for -72000:
>
> ]$ dig anywhere.ebay.com
>
> ; <<>> DiG 9.7.3-P3 <<>> anywhere.ebay.com
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63974
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;anywhere.ebay.com. IN A
>
> ;; ANSWER SECTION:
> anywhere.ebay.com. 2974 IN CNAME anywhere.ebay.com.edgesuite.net.
> anywhere.ebay.com.edgesuite.net. 18511 IN CNAME a1479.g.akamai.net.
> a1479.g.akamai.net. 20 IN A 63.217.232.136
> a1479.g.akamai.net. 20 IN A 63.217.232.112
>
> ;; Query time: 31 msec
> ;; SERVER: 10.245.17.13#53(10.245.17.13)
> ;; WHEN: Wed Feb 29 11:48:30 2012
> ;; MSG SIZE rcvd: 141
>
>
>
> _______________________________________________
> 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
_______________________________________________
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