Explorar o código

single process

Davide Alberani %!s(int64=9) %!d(string=hai) anos
pai
achega
b815189440
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      eventman_server.py

+ 1 - 2
eventman_server.py

@@ -33,8 +33,7 @@ def main():
     )
 
     http_server = tornado.httpserver.HTTPServer(application)
-    http_server.bind(options.port)
-    http_server.start(0)
+    http_server.listen(options.port)
     tornado.ioloop.IOLoop.instance().start()