Re-enable cleanup_closed on cpython >= 3.11.4 (#93120)
parent
d8d4446563
commit
72a6d3a748
|
@ -37,10 +37,11 @@ SERVER_SOFTWARE = "{0}/{1} aiohttp/{2} Python/{3[0]}.{3[1]}".format(
|
|||
APPLICATION_NAME, __version__, aiohttp.__version__, sys.version_info
|
||||
)
|
||||
|
||||
ENABLE_CLEANUP_CLOSED = sys.version_info < (3, 11, 1)
|
||||
ENABLE_CLEANUP_CLOSED = not (3, 11, 1) <= sys.version_info < (3, 11, 4)
|
||||
# Enabling cleanup closed on python 3.11.1+ leaks memory relatively quickly
|
||||
# see https://github.com/aio-libs/aiohttp/issues/7252
|
||||
# aiohttp interacts poorly with https://github.com/python/cpython/pull/98540
|
||||
# The issue was fixed in 3.11.4 via https://github.com/python/cpython/pull/104485
|
||||
|
||||
WARN_CLOSE_MSG = "closes the Home Assistant aiohttp session"
|
||||
|
||||
|
|
Loading…
Reference in New Issue