CFHTTPStream returns long error code (EAI_NONAME?)
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