Skip to content

Commit

Permalink
Revert "Bump aiohttp to 3.9.0 (#4714)" (#4722)
Browse files Browse the repository at this point in the history
This reverts commit f8f5174.
  • Loading branch information
bdraco authored Nov 22, 2023
1 parent ce26e1d commit c0868d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiodns==3.1.1
aiohttp==3.9.0
aiohttp==3.8.6
aiohttp-fast-url-dispatcher==0.1.1
async_timeout==4.0.3
atomicwrites-homeassistant==1.4.1
Expand Down
6 changes: 4 additions & 2 deletions supervisor/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, coresys: CoreSys):
attach_fast_url_dispatcher(self.webapp, FastUrlDispatcher())

# service stuff
self._runner: web.AppRunner = web.AppRunner(self.webapp, shutdown_timeout=5)
self._runner: web.AppRunner = web.AppRunner(self.webapp)
self._site: web.TCPSite | None = None

async def load(self) -> None:
Expand Down Expand Up @@ -673,7 +673,9 @@ def _register_docker(self) -> None:
async def start(self) -> None:
"""Run RESTful API webserver."""
await self._runner.setup()
self._site = web.TCPSite(self._runner, host="0.0.0.0", port=80)
self._site = web.TCPSite(
self._runner, host="0.0.0.0", port=80, shutdown_timeout=5
)

try:
await self._site.start()
Expand Down

0 comments on commit c0868d9

Please sign in to comment.