Reduce target control/remote server connection timeout, for faster enum

* On the assumption that for both of these use-cases the remote machine
  isn't going to be across so terrible a network that it will take 1s or
  longer to at least make the TCP connection handshake.
This commit is contained in:
baldurk
2016-08-04 11:50:07 +02:00
parent 89f0cdbfff
commit 699fc78d92
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ RENDERDOC_CreateRemoteServerConnection(const char *host, uint32_t port, RemoteSe
if(s != "-")
{
sock = Network::CreateClientSocket(s.c_str(), (uint16_t)port, 3000);
sock = Network::CreateClientSocket(s.c_str(), (uint16_t)port, 750);
if(sock == NULL)
return eReplayCreate_NetworkIOFailed;
+1 -1
View File
@@ -677,7 +677,7 @@ extern "C" RENDERDOC_API TargetControl *RENDERDOC_CC RENDERDOC_CreateTargetContr
if(host != NULL && host[0] != '\0')
s = host;
Network::Socket *sock = Network::CreateClientSocket(s.c_str(), ident & 0xffff, 3000);
Network::Socket *sock = Network::CreateClientSocket(s.c_str(), ident & 0xffff, 750);
if(sock == NULL)
return NULL;