summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-08-13 18:30:58 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-08-13 18:30:58 (GMT)
commit0670ded9cfa064f3558435cecb0e7866833d62dd (patch)
tree2c706dce997acd960123ac75a72ae6a600b156e6 /Swiften/Client/CoreClient.cpp
parentf799cce739f89225258dfbd2e0099e8a71d99af4 (diff)
downloadswift-contrib-0670ded9cfa064f3558435cecb0e7866833d62dd.zip
swift-contrib-0670ded9cfa064f3558435cecb0e7866833d62dd.tar.bz2
Set timeout on each connection attempt, instead of global connect timeout.
Resolves: #962
Diffstat (limited to 'Swiften/Client/CoreClient.cpp')
-rw-r--r--Swiften/Client/CoreClient.cpp2
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 {