diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-08-13 18:30:58 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-08-13 18:30:58 (GMT) |
commit | 0670ded9cfa064f3558435cecb0e7866833d62dd (patch) | |
tree | 2c706dce997acd960123ac75a72ae6a600b156e6 /Swiften/Client | |
parent | f799cce739f89225258dfbd2e0099e8a71d99af4 (diff) | |
download | swift-0670ded9cfa064f3558435cecb0e7866833d62dd.zip swift-0670ded9cfa064f3558435cecb0e7866833d62dd.tar.bz2 |
Set timeout on each connection attempt, instead of global connect timeout.
Resolves: #962
Diffstat (limited to 'Swiften/Client')
-rw-r--r-- | Swiften/Client/CoreClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp index ea89c06..485cd4a 100644 --- a/Swiften/Client/CoreClient.cpp +++ b/Swiften/Client/CoreClient.cpp @@ -112,7 +112,7 @@ void CoreClient::connect(const ClientOptions& o) { if (options.boshURL.empty()) { connector_ = boost::make_shared<ChainedConnector>(host, port, o.manualHostname.empty(), networkFactories->getDomainNameResolver(), connectionFactories, networkFactories->getTimerFactory()); connector_->onConnectFinished.connect(boost::bind(&CoreClient::handleConnectorFinished, this, _1, _2)); - connector_->setTimeoutMilliseconds(60*1000); + connector_->setTimeoutMilliseconds(2*60*1000); connector_->start(); } else { |