Skip to content

Commit a48bc75

Browse files
technilloguemattt
andauthored
Update python/cog/server/clients.py
Co-authored-by: Mattt <[email protected]> Signed-off-by: technillogue <[email protected]>
1 parent ee71551 commit a48bc75

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: python/cog/server/clients.py

-4
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,10 @@ async def upload_file(
235235
url = resp1.headers["Location"]
236236

237237
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)
241238
resp = await self.file_client.put(
242239
url,
243240
content=ChunkFileReader(fh),
244241
headers=headers,
245-
timeout=timeout,
246242
)
247243
# TODO: if file size is >1MB, show upload throughput
248244
resp.raise_for_status()

0 commit comments

Comments
 (0)