Merge pull request #1474

fc40b3e7 Lower connection timeout in check_connection() (Jaquee)
This commit is contained in:
Riccardo Spagni 2016-12-20 17:47:58 +02:00
commit 9777de1890
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 1 deletions

View File

@ -2233,7 +2233,7 @@ bool wallet2::check_connection(uint32_t *version)
u.port = m_testnet ? config::testnet::RPC_DEFAULT_PORT : config::RPC_DEFAULT_PORT; u.port = m_testnet ? config::testnet::RPC_DEFAULT_PORT : config::RPC_DEFAULT_PORT;
} }
if (!m_http_client.connect(u.host, std::to_string(u.port), WALLET_RCP_CONNECTION_TIMEOUT)) if (!m_http_client.connect(u.host, std::to_string(u.port), 10000))
return false; return false;
} }