summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-16 09:56:17 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-18 19:11:46 (GMT)
commit7d2db3b25effc93aa111664d0745a5365f4b7f05 (patch)
treec816a6f682a31557edf197ae2812e6051bc6424a /Swiften/Network
parentb9a883751584f7bd5d24786b52c2f78757ef7829 (diff)
downloadswift-7d2db3b25effc93aa111664d0745a5365f4b7f05.zip
swift-7d2db3b25effc93aa111664d0745a5365f4b7f05.tar.bz2
Use fallback mechanism for proxies.
Diffstat (limited to 'Swiften/Network')
-rw-r--r--Swiften/Network/ChainedConnector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Network/ChainedConnector.cpp b/Swiften/Network/ChainedConnector.cpp
index e08ffc6..1a38e53 100644
--- a/Swiften/Network/ChainedConnector.cpp
+++ b/Swiften/Network/ChainedConnector.cpp
@@ -7,10 +7,12 @@
#include <Swiften/Network/ChainedConnector.h>
#include <boost/bind.hpp>
+#include <typeinfo>
#include <Swiften/Base/Log.h>
#include <Swiften/Base/foreach.h>
#include <Swiften/Network/Connector.h>
+#include <Swiften/Network/ConnectionFactory.h>
using namespace Swift;
@@ -47,7 +49,6 @@ void ChainedConnector::stop() {
}
void ChainedConnector::tryNextConnectionFactory() {
- SWIFT_LOG(debug) << "Trying next connection factory" << std::endl;
assert(!currentConnector);
if (connectionFactoryQueue.empty()) {
SWIFT_LOG(debug) << "No more connection factories" << std::endl;
@@ -55,6 +56,7 @@ void ChainedConnector::tryNextConnectionFactory() {
}
else {
ConnectionFactory* connectionFactory = connectionFactoryQueue.front();
+ SWIFT_LOG(debug) << "Trying next connection factory: " << typeid(*connectionFactory).name() << std::endl;
connectionFactoryQueue.pop_front();
currentConnector = Connector::create(hostname, resolver, connectionFactory, timerFactory);
currentConnector->setTimeoutMilliseconds(timeoutMilliseconds);