mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-18 18:19:12 +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:
1 parent
89f0cdbfff
commit
699fc78d92
2 files changed
+2
-2
No files matched your search
@@ -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