Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 88e33e2

Browse files
committed
Update the ClientSession to use the new timeout parameter.
1 parent e27e100 commit 88e33e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch_async/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, host='localhost', port=9200, http_auth=None,
6565

6666
self.session = aiohttp.ClientSession(
6767
auth=http_auth,
68-
conn_timeout=self.timeout,
68+
timeout=aiohttp.ClientTimeout(total=self.timeout),
6969
connector=aiohttp.TCPConnector(
7070
loop=self.loop,
7171
verify_ssl=verify_certs,

0 commit comments

Comments
 (0)