The SCNetworkReachability APIs are not proxy aware.

- Allan


> On May 22, 2016, at 11:11 AM, Yulia Bensman <[email protected]> wrote:
> 
> Dear all,
>  
> Please help with the following problem:
>  
> Our app is a client that running on Mac OS X and should connect to server 
> using TCP-based protocol.
> We are using SCNetworkReachability (and SCNetworkReachabilityCreateWithName) 
> API to sign up for notifications when the server becomes unreachable. So far 
> it has worked ok.
>  
> Now the client should work in the environment that is:
> a)      protected with proxy. 
> b)      the DNS server does not make DNS forwarding for external world-wide 
> servers (so, as result of this, for our servers as well).
> In such environment our client should connect to the server via proxy, 
> specify the server FQDN name, and the proxy makes DNS resolution for it.
>  
> The client succeeds to connect, but then SCNetworkReachability sends me 
> notification, that the server is unavailable. We have such a problem in all 
> Mac OS X versions below 10.11 (in 10.11 it works ok, i.e. Reachability API 
> does not complain).
> It is a real problem for us, since the client really succeeded to establish 
> connection with server, but cannot rely on Reachability notification.
>  
> Should the SCNetworkReachability work in such configuration? (I mean should 
> it detect that the host is reachable?).
> If it should not work (I can understand that the SCNetworkReachability API 
> requires DNS resolution), but why it does in 10.11?
> Is there any configuration to make SCNetworkReachability work in versions 
> below 10.11?
>  
> Thanks a lot,
> Yulia 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      ([email protected] 
> <mailto:[email protected]>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/macnetworkprog/ajn%40apple.com 
> <https://lists.apple.com/mailman/options/macnetworkprog/ajn%40apple.com>
> 
> This email sent to [email protected] <mailto:[email protected]>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to