Skip to content

Commit

Permalink
update to aiohttp 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
iceboy233 committed Apr 8, 2017
1 parent 0754701 commit d09c9b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aiohttp>=2.0.5
aiohttp>=2.0.6
jinja2>=2.9.0
# sockjs at head supports aiohttp 2.0, but not released yet.
git+https://github.com/aio-libs/sockjs.git
Expand Down
9 changes: 2 additions & 7 deletions vj4/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import atexit
import logging
import logging.config
Expand All @@ -8,6 +7,7 @@
import sys
import urllib.parse

from aiohttp import web
from vj4 import app
from vj4.util import options

Expand Down Expand Up @@ -65,12 +65,7 @@ def main():
break
else:
atexit.register(lambda: os.kill(pid, signal.SIGTERM))
loop = asyncio.get_event_loop()
loop.run_until_complete(loop.create_server(app.Application().make_handler(access_log=None,
lingering_time=0.0),
sock=sock))
_logger.info('Server listening on %s', options.listen)
loop.run_forever()
web.run_app(app.Application(), sock=sock, access_log=None)

This comment has been minimized.

Copy link
@twd2

twd2 Apr 8, 2017

Member

lingering_time?

This comment has been minimized.

Copy link
@iceboy233

iceboy233 Apr 9, 2017

Author Member

offline discussed - it was a bug in aiohttp


if __name__ == '__main__':
sys.exit(main())

0 comments on commit d09c9b1

Please sign in to comment.