Skip to content

Commit 2e2ba3f

Browse files
authored
Chore bump aiohttp to 3.11.2 (#541)
1 parent b1c976d commit 2e2ba3f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

gql/transport/common/adapters/aiohttp.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Any, Dict, Literal, Mapping, Optional, Union
55

66
import aiohttp
7-
from aiohttp import BasicAuth, Fingerprint, WSMsgType
7+
from aiohttp import BasicAuth, ClientWSTimeout, Fingerprint, WSMsgType
88
from aiohttp.typedefs import LooseHeaders, StrOrURL
99
from multidict import CIMultiDictProxy
1010

@@ -132,6 +132,11 @@ async def connect(self) -> None:
132132

133133
self.session = aiohttp.ClientSession(**client_session_args)
134134

135+
ws_timeout = ClientWSTimeout(
136+
ws_receive=self.receive_timeout,
137+
ws_close=self.websocket_close_timeout,
138+
)
139+
135140
connect_args: Dict[str, Any] = {
136141
"url": self.url,
137142
"headers": self.headers,
@@ -142,8 +147,7 @@ async def connect(self) -> None:
142147
"proxy": self.proxy,
143148
"proxy_auth": self.proxy_auth,
144149
"proxy_headers": self.proxy_headers,
145-
"timeout": self.websocket_close_timeout,
146-
"receive_timeout": self.receive_timeout,
150+
"timeout": ws_timeout,
147151
}
148152

149153
if self.subprotocols:

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
] + tests_requires
3939

4040
install_aiohttp_requires = [
41-
"aiohttp>=3.8.0,<4;python_version<='3.11'",
42-
"aiohttp>=3.9.0b0,<4;python_version>'3.11'",
41+
"aiohttp>=3.11.2,<4",
4342
]
4443

4544
install_requests_requires = [

0 commit comments

Comments
 (0)