summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2019-01-01 23:31:34 +0100
committerSebastian Pipping <sebastian@pipping.org>2019-12-09 23:46:12 +0100
commitccadf88107eb934c500be6526811d39a9b449ceb (patch)
treea5ab34b376c3eab119310adb0b9ab1de09e0f2bf
parent8be27c727c9f34b77691d83b1dd32242a5ed175b (diff)
downloadbottle-ccadf88107eb934c500be6526811d39a9b449ceb.tar.gz
uvloop: Pass loop to aiohttp to fix backend "uvloop"
Backtrace was: Traceback (most recent call last): File "[..]/lib/python3.6/site-packages/aiohttp/server.py", line 239, in start httpstream = reader.set_parser(self._request_parser) File "[..]/lib/python3.6/site-packages/aiohttp/parsers.py", line 199, in set_parser self.unset_parser() File "[..]/lib/python3.6/site-packages/aiohttp/parsers.py", line 209, in unset_parser if self._loop.is_closed(): AttributeError: 'NoneType' object has no attribute 'is_closed'
-rwxr-xr-xbottle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bottle.py b/bottle.py
index f53fe7e..cc42077 100755
--- a/bottle.py
+++ b/bottle.py
@@ -3525,6 +3525,7 @@ class AiohttpServer(AsyncioServerAdapter):
protocol_factory = lambda: WSGIServerHttpProtocol(
handler,
readpayload=True,
+ loop=self.loop,
debug=(not self.quiet))
self.loop.run_until_complete(self.loop.create_server(protocol_factory,
self.host,