Try a TCP connection before trying HTTPS to quickly eliminate transport layer connectivity issues

This commit is contained in:
Cameron Gutman 2015-10-11 14:39:02 -07:00
parent 79b6ec839a
commit e61b8f1b34

View File

@ -368,6 +368,11 @@ public class ComputerManagerService extends Service {
} }
private ComputerDetails tryPollIp(ComputerDetails details, InetAddress ipAddr) { private ComputerDetails tryPollIp(ComputerDetails details, InetAddress ipAddr) {
// Fast poll this address first to determine if we can connect at the TCP layer
if (!fastPollIp(ipAddr)) {
return null;
}
try { try {
NvHTTP http = new NvHTTP(ipAddr, idManager.getUniqueId(), NvHTTP http = new NvHTTP(ipAddr, idManager.getUniqueId(),
null, PlatformBinding.getCryptoProvider(ComputerManagerService.this)); null, PlatformBinding.getCryptoProvider(ComputerManagerService.this));