chiark / gitweb /
wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 20 Mar 2017 08:39:27 +0000 (08:39 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 20 Mar 2017 08:39:27 +0000 (08:39 +0000)
server

diff --git a/server b/server
index aa06eb6..e813ca0 100755 (executable)
--- a/server
+++ b/server
@@ -288,7 +288,8 @@ def start_http():
       addr = ipaddress.IPv6Address(addrspec)
       endpointfactory = twisted.internet.endpoints.TCP6ServerEndpoint
     ep = endpointfactory(reactor, cfg.getint('server','port'), addr)
-    ep.listen(sitefactory)
+    defer = ep.listen(sitefactory)
+    defer.addErrback(lambda err: err.raiseException())
 
 #---------- config and setup ----------