Skip to content

Commit b6e3617

Browse files
Merge pull request #269 from tigergraph/async-timeout-bug-fix
feat(async req): remove timeout
2 parents a6e70d2 + 3bad003 commit b6e3617

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyTigerGraph/pytgasync/pyTigerGraphBase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async def _req(self, method: str, url: str, authMode: str = "token", headers: di
133133
_headers, _data, verify = self._prep_req(
134134
authMode, headers, url, method, data)
135135

136-
async with httpx.AsyncClient() as client:
136+
async with httpx.AsyncClient(timeout=None) as client:
137137
if jsonData:
138138
res = await client.request(method, url, headers=_headers, json=_data, params=params)
139139
else:
@@ -161,7 +161,7 @@ async def _req(self, method: str, url: str, authMode: str = "token", headers: di
161161
else:
162162
url = newRestppUrl + '/' + \
163163
'/'.join(url.split(':')[2].split('/')[1:])
164-
async with httpx.AsyncClient() as client:
164+
async with httpx.AsyncClient(timeout=None) as client:
165165
if jsonData:
166166
res = await client.request(method, url, headers=_headers, json=_data, params=params)
167167
else:

0 commit comments

Comments
 (0)