mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user