Skip to content

Commit 775591e

Browse files
committed
Force closing network connection after usage
1 parent 92fb899 commit 775591e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/lsst/resources/http.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,9 @@ async def get_client_session(**kwargs: Any) -> ClientSession:
13431343
limit_per_host=1,
13441344
# Time to keep open connections alive (unit is likely
13451345
# seconds, even if not documented). The default is 15.0
1346-
keepalive_timeout=15.0,
1346+
# keepalive_timeout=15.0,
1347+
# Close network connection after usage
1348+
force_close=True,
13471349
)
13481350

13491351
connect_timeout, read_timeout = self._config.timeout

0 commit comments

Comments
 (0)