summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2018-06-11 18:05:35 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2018-06-11 18:05:35 +0200
commitba618638275eb67d5f0085d73fdf43b27563491c (patch)
treecc7a7f6644c425935799bfcc8e5aab4a1167df0c
parented7a91e913a4c121f9109485b34ab4673c7c750c (diff)
Set connection timeout to 60 seconds
-rwxr-xr-xfot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fot.py b/fot.py
index 68e3c0e..1f8a64f 100755
--- a/fot.py
+++ b/fot.py
@@ -239,7 +239,7 @@ def start_server(server):
print '%s' % server
factory = BotFactory(server, config.get(server, 'nickname'))
- reactor.connectTCP(config.get(server, 'host'), config.getint(server, 'port'), factory, bindAddress = (config.get(server, 'bind'), 0))
+ reactor.connectTCP(config.get(server, 'host'), config.getint(server, 'port'), factory, bindAddress = (config.get(server, 'bind'), 0), timeout = 60)
print 'Starting per-network instances...'
for server in (server for server in config.sections() if server.startswith('server/')):