> On Nov 11, 2014, at 9:59 AM, Quinn The Eskimo! <eski...@apple.com> wrote:
> 
> o reachability saying "no" doesn't guarantee that the connection will fail

Can you elaborate on that? It's the part I don't understand. As I said above, I 
thought that a "no" meant the IP routing tables were telling me "you can't get 
there from here." In what cases would there be a false negative?

(…other than race conditions where the host becomes reachable right after I 
make the call. I'm using the observation mode so I get notified when 
reachability changes.)

One of the reasons I don't want to try first is that the attempt might take a 
long time to fail due to DNS timeouts or whatever. It's a better user 
experience if I immediately tell the API client (and thus the user) "you're 
offline", rather than attempting to connect for 30 seconds before giving up.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to