We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee71551 commit a48bc75Copy full SHA for a48bc75
python/cog/server/clients.py
@@ -235,14 +235,10 @@ async def upload_file(
235
url = resp1.headers["Location"]
236
237
log.info("doing real upload to %s", url)
238
- # set connect timeout to slightly more than a multiple of 3 to avoid
239
- # aligning perfectly with TCP retransmission timer
240
- timeout = httpx.Timeout(10.0, read=15.0)
241
resp = await self.file_client.put(
242
url,
243
content=ChunkFileReader(fh),
244
headers=headers,
245
- timeout=timeout,
246
)
247
# TODO: if file size is >1MB, show upload throughput
248
resp.raise_for_status()
0 commit comments