...
 
Commits (2)
......@@ -3,7 +3,9 @@ from io import BytesIO
import logging
import os
import posixpath
import signal
import socket
import sys
from tempfile import TemporaryFile
import time
from urllib import quote, splitport
......@@ -160,6 +162,9 @@ def runwsgi():
make_wsgi_app({}, zope_conf=args.zope_conf)
from Signals.SignalHandler import SignalHandler
SignalHandler.registerHandler(signal.SIGTERM, sys.exit)
ip, port = splitport(args.address)
port = int(port)
createServer(
......
......@@ -80,6 +80,9 @@ class TimerServer:
_response=response)
server.add_task(self)
def cancel(self):
pass
if ip == '0.0.0.0':
ip = socket.gethostbyname(socket.gethostname())
......