summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-18 18:50:50 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-18 18:50:50 (GMT)
commit312a114c7e204cfe4cfe961509ab9b24ccde7860 (patch)
tree7649aba8b50de49f5259709ee3d34b035d83b33b /Swiften/Examples/BenchTool
parent790dd3e97c6634f6a256f2e072507b9d5f29348b (diff)
downloadswift-312a114c7e204cfe4cfe961509ab9b24ccde7860.zip
swift-312a114c7e204cfe4cfe961509ab9b24ccde7860.tar.bz2
Move all domain name resolve queries into one thread.
This avoids reentrancy problems on some platform DNS calls. Resolves: #443
Diffstat (limited to 'Swiften/Examples/BenchTool')
-rw-r--r--Swiften/Examples/BenchTool/BenchTool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Examples/BenchTool/BenchTool.cpp b/Swiften/Examples/BenchTool/BenchTool.cpp
index a5c0925..1dcc8c2 100644
--- a/Swiften/Examples/BenchTool/BenchTool.cpp
+++ b/Swiften/Examples/BenchTool/BenchTool.cpp
@@ -22,6 +22,8 @@ using namespace Swift;
SimpleEventLoop eventLoop;
BoostNetworkFactories networkFactories(&eventLoop);
int numberOfConnectedClients = 0;
+int numberOfInstances = 100;
+
void handleConnected() {
numberOfConnectedClients++;
@@ -29,8 +31,6 @@ void handleConnected() {
}
int main(int, char**) {
- int numberOfInstances = 1000;
-
char* jid = getenv("SWIFT_BENCHTOOL_JID");
if (!jid) {
std::cerr << "Please set the SWIFT_BENCHTOOL_JID environment variable" << std::endl;