On May 16, 2014, at 11:11 , Ian Ragsdale <[email protected]> wrote:
> Thanks, Andrew, I'd hope by now you could give me a bit more credit than
> that. :)
>
> The logs from CBL are quite clear. The reachability check is failing, but the
> server is definitely reachable using Safari - I can hit URLs on it and see
> the expected response. CBL is very clearly not ever attempting a connection
> due to the reachability check returning a failure. So, I am quite positive
> that in this situation, a negative response from SCNetworkReachability is NOT
> a clear indication that a successful request cannot be made, because the
> proxy server will allow it to succeed.
>
> I do not particularly care WHY it reports a failure, nor was I attempting to
> posit a particular reason. In this environment, the server actually cannot be
> resolved by DNS, but again, that is irrelevant because it can connect to the
> proxy server, and only the proxy server needs to resolve the server.
>
> So, I'm quite positive that when a proxy server is involved,
> SCNetworkReachability does not accurately predict whether or not a successful
> request to the server can be made. So, lets assume for the moment that I'm
> not an idiot and that I've diagnosed the issue correctly. In that case, do we
> think there are other likely problems with this? Seems like an actual check
> is the most accurate way to see if the server can be reached. The first thing
> that comes to mind is that I should probably look for a specific response,
> otherwise a proxy server returning an error would also appear to be a success.
Ian,
You've obviously taken offense. I cast no aspersions on your character
but did attempt to change what appears to be a misunderstanding of how
reachability functions. Please don't attribute malice to pedantry.
The evidence you present is fully consistent with my interpretation of
how reachability works. It will never bring up the radios when you call it. It
really only checks their status after they are on and reports when they are
turned off or change state.
Now, CBL may not choose to bring up the radios in response to a
reachability. That is their choice. And the fix is pretty trivial. Just touch
the server with NSURLConnection.
Anon,
Andrew
____________________________________
Andrew W. Donoho
Donoho Design Group, L.L.C.
[email protected], +1 (512) 666-7596, twitter.com/adonoho
Download Retweever here: <http://Retweever.com>
No risk, no art.
No art, no reward.
-- Seth Godin
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/5C425D67-A5F0-4268-9F2C-4B348243C24B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.