Turn down timeouts for socket connection

This commit is contained in:
Jon Evans 2021-03-23 17:43:09 -04:00
parent f57dcf2a34
commit df84a90f6c
1 changed files with 3 additions and 2 deletions

View File

@ -272,8 +272,9 @@ private:
// And that's all :-) // And that's all :-)
sock_client = new wxSocketClient( wxSOCKET_BLOCK ); sock_client = new wxSocketClient( wxSOCKET_BLOCK );
sock_client->SetTimeout( 2 ); // Time out in Seconds sock_client->SetTimeout( 1 ); // Time out in Seconds
sock_client->Connect( addr, true ); sock_client->Connect( addr, false );
sock_client->WaitOnConnect( 0, 250 );
if( sock_client->Ok() && sock_client->IsConnected() ) if( sock_client->Ok() && sock_client->IsConnected() )
{ {