Skip to content

Commit

Permalink
[Temporarily switch to aiohttp 3.9 beta]
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Vasilyev <nolar@nolar.info>
  • Loading branch information
nolar committed Oct 15, 2023
1 parent 276bdaf commit 55c8c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kopf/_kits/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ async def _serve_fn(request: aiohttp.web.Request) -> aiohttp.web.Response:
# multi-threaded sockets are not really used -- high load is not expected for webhooks.
addr = self.addr or None # None is aiohttp's "any interface"
port = self.port or self._allocate_free_port()
site = aiohttp.web.TCPSite(runner, addr, port, ssl_context=context, reuse_port=True)
site = aiohttp.web.TCPSite(runner, addr, port, ssl_context=context, reuse_port=True,
shutdown_timeout=0.0001)
await site.start()

# Log with the actual URL: normalised, with hostname/port set.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
'python-json-logger', # 0.05 MB
'iso8601', # 0.07 MB
'click', # 0.60 MB
'aiohttp<4.0.0', # 7.80 MB
'aiohttp==3.9.0b0', # 7.80 MB
'pyyaml', # 0.90 MB
],
extras_require={
Expand Down

0 comments on commit 55c8c76

Please sign in to comment.