Bump aiohttp to 3.9.1 (#4729)

* Revert "Revert "Bump aiohttp to 3.9.0 (#4714)" (#4722)"

This reverts commit c0868d9dac32cd1e073cb39e9b0b19ca1e1f9ff3.

* Bump aiohttp to 3.9.1

changelog: https://github.com/aio-libs/aiohttp/compare/v3.8.6...v3.9.1

The issues that caused us to revert 3.9.0 have been fixed
This commit is contained in:
J. Nick Koston 2023-11-27 06:44:54 -06:00 committed by GitHub
parent bb31b1bc6e
commit cb03d039f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
aiodns==3.1.1
aiohttp==3.8.6
aiohttp==3.9.1
aiohttp-fast-url-dispatcher==0.1.1
async_timeout==4.0.3
atomicwrites-homeassistant==1.4.1

View File

@ -68,7 +68,7 @@ class RestAPI(CoreSysAttributes):
attach_fast_url_dispatcher(self.webapp, FastUrlDispatcher())
# service stuff
self._runner: web.AppRunner = web.AppRunner(self.webapp)
self._runner: web.AppRunner = web.AppRunner(self.webapp, shutdown_timeout=5)
self._site: web.TCPSite | None = None
async def load(self) -> None:
@ -673,9 +673,7 @@ class RestAPI(CoreSysAttributes):
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, shutdown_timeout=5
)
self._site = web.TCPSite(self._runner, host="0.0.0.0", port=80)
try:
await self._site.start()