From df84a90f6c16cfbfa03663e26cfa07c76140676a Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 23 Mar 2021 17:43:09 -0400 Subject: [PATCH] Turn down timeouts for socket connection --- common/eda_dde.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/eda_dde.cpp b/common/eda_dde.cpp index 3fc3c6317f..5a99c21221 100644 --- a/common/eda_dde.cpp +++ b/common/eda_dde.cpp @@ -272,8 +272,9 @@ private: // And that's all :-) sock_client = new wxSocketClient( wxSOCKET_BLOCK ); - sock_client->SetTimeout( 2 ); // Time out in Seconds - sock_client->Connect( addr, true ); + sock_client->SetTimeout( 1 ); // Time out in Seconds + sock_client->Connect( addr, false ); + sock_client->WaitOnConnect( 0, 250 ); if( sock_client->Ok() && sock_client->IsConnected() ) {