use one application for all hosts
This commit is contained in:
parent
dec2ad8bea
commit
9b029ac084
@ -288,8 +288,8 @@ def serve(configuration, shutdown_socket=None):
|
|||||||
"Failed to parse address %r: %s" % (host, e)) from e
|
"Failed to parse address %r: %s" % (host, e)) from e
|
||||||
server_addresses.append((address, port))
|
server_addresses.append((address, port))
|
||||||
|
|
||||||
|
application = Application(configuration)
|
||||||
for server_address in server_addresses:
|
for server_address in server_addresses:
|
||||||
application = Application(configuration)
|
|
||||||
try:
|
try:
|
||||||
server = ServerCopy(server_address, RequestHandlerCopy)
|
server = ServerCopy(server_address, RequestHandlerCopy)
|
||||||
server.set_app(application)
|
server.set_app(application)
|
||||||
|
Loading…
Reference in New Issue
Block a user