Skip to content

Commit

Permalink
Merge pull request #293 from codecov/gio/fix-httpx-pool-timeout
Browse files Browse the repository at this point in the history
fix: Try to fix httpx.PoolTimeout error
  • Loading branch information
giovanni-guidini authored Oct 11, 2023
2 parents f714c36 + 6e916b9 commit 647c468
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codecov_cli/services/staticanalysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ async def run_analysis_entrypoint(
length=len(files_that_need_upload),
label="Uploading files",
) as bar:
limits = httpx.Limits(max_keepalive_connections=3, max_connections=5)
async with httpx.AsyncClient(limits=limits) as client:
async with httpx.AsyncClient() as client:
all_tasks = []
for el in files_that_need_upload:
all_tasks.append(send_single_upload_put(client, all_data, el))
Expand Down

0 comments on commit 647c468

Please sign in to comment.