bugfix
This commit is contained in:
parent
803c0f5112
commit
5f8aca9960
@ -39,8 +39,6 @@ class AHApp(web.Application):
|
|||||||
super().__init__(*args, **kw)
|
super().__init__(*args, **kw)
|
||||||
self.user_data = DictObject()
|
self.user_data = DictObject()
|
||||||
self.middlewares.insert(0, real_ip_middleware())
|
self.middlewares.insert(0, real_ip_middleware())
|
||||||
[ self.on_startup.append(c) for c in startup_coros ]
|
|
||||||
[ self.on_cleanup.append(c) for c in cleanup_coros ]
|
|
||||||
|
|
||||||
def set_data(self, k, v):
|
def set_data(self, k, v):
|
||||||
self.user_data[k] = v
|
self.user_data[k] = v
|
||||||
@ -117,6 +115,8 @@ class ConfiguredServer:
|
|||||||
if platform != 'win32':
|
if platform != 'win32':
|
||||||
reuse_port = True
|
reuse_port = True
|
||||||
print('reuse_port=', reuse_port)
|
print('reuse_port=', reuse_port)
|
||||||
|
[ self.app.on_startup.append(c) for c in startup_coros ]
|
||||||
|
[ self.app.on_cleanup.append(c) for c in cleanup_coros ]
|
||||||
web.run_app(self.build_app(),host=config.website.host or '0.0.0.0',
|
web.run_app(self.build_app(),host=config.website.host or '0.0.0.0',
|
||||||
port=port,
|
port=port,
|
||||||
reuse_port=reuse_port,
|
reuse_port=reuse_port,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# setup.cfg
|
# setup.cfg
|
||||||
[metadata]
|
[metadata]
|
||||||
name = ahserver
|
name = ahserver
|
||||||
version = 1.0.15
|
version = 1.1.0
|
||||||
description = A application server base on aiohttp
|
description = A application server base on aiohttp
|
||||||
author = yu moqing
|
author = yu moqing
|
||||||
author_email = yumoqing@gmail.com
|
author_email = yumoqing@gmail.com
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user