• 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
CFHTTPStream returns long error code (EAI_NONAME?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFHTTPStream returns long error code (EAI_NONAME?)


  • Subject: CFHTTPStream returns long error code (EAI_NONAME?)
  • From: Ladd Van Tol <email@hidden>
  • Date: Tue, 25 Aug 2009 07:36:25 -0700

I have a Mac testing rig that makes repeated connections to a pool of round-robin DNS'ed HTTPS servers using CFHTTPStream.

Most of the time, everything goes well, but very occasionally, I get an error back that looks like this:

error: Error Domain=kCFErrorDomainCFNetwork Code=2 UserInfo=0x105e41a70 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)"

The info dictionary looks like this:

Info: {
    kCFGetAddrInfoFailureKey = 140733193388040;
}

In hex, this is 0x00007FFF00000008, so I'm assuming that the low 32 bits are a code from getaddrinfo (EAI_NONAME).

Assuming that this is a legitimate EAI_NONAME error, why does the failure key have 0x7FFF in the high 32 bits?

- Ladd

_______________________________________________
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


  • Prev by Date: How to maintain the socket connection in open status and send datas repeatedly
  • Next by Date: Re: How to maintain the socket connection in open status and send datas repeatedly
  • Previous by thread: Re: How to maintain the socket connection in open status and send datas repeatedly
  • Next by thread: Nonlinear limits on the number or rate of NSURLConnections
  • Index(es):
    • Date
    • Thread