From ba618638275eb67d5f0085d73fdf43b27563491c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 11 Jun 2018 18:05:35 +0200 Subject: Set connection timeout to 60 seconds --- fot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/')): -- cgit v1.2.3