diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2018-06-11 18:05:35 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2018-06-11 18:05:35 +0200 |
commit | ba618638275eb67d5f0085d73fdf43b27563491c (patch) | |
tree | cc7a7f6644c425935799bfcc8e5aab4a1167df0c | |
parent | ed7a91e913a4c121f9109485b34ab4673c7c750c (diff) |
Set connection timeout to 60 seconds
-rwxr-xr-x | fot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/')): |