Skip to content

Concurrent requests take forever to be executed #3151

Answered by zanieb
novitae asked this question in Potential Issue
Discussion options

You must be logged in to vote

I'm pretty sure that does not automatically create a session for you in httpx, I think you want something like this:

async with httpx.AsyncClient() as client:
    await asyncio.gather(*[client.get...])

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@novitae
Comment options

@zanieb
Comment options

@novitae
Comment options

@zanieb
Comment options

Answer selected by novitae
@novitae
Comment options

@zanieb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants