Skip to content

Keep-alive timeouts. - #627

Merged
lovelydinosaur merged 7 commits into
masterfrom
add-time-to-backend
Dec 12, 2019
Merged

lovelydinosaur merged 7 commits into
masterfrom
add-time-to-backend

Conversation

@lovelydinosaur

@lovelydinosaur lovelydinosaur commented Dec 11, 2019 •

Copy link
Copy Markdown
Member

Closes #34
Closes #95 (as best we can)
Closes #289
Closes #381

@florimondmanca florimondmanca left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somes initial comments.

Just to confirm — this mechanism only intervenes at the time of making a request, correct? I'm wondering how long requests (e.g. those using e.g. read_timeout=20) would be affected by this change. I assume that while the request is executing, the connection is not considered keep-alive, so we're all good?

Comment thread httpx/dispatch/connection_pool.py Outdated
Comment thread httpx/dispatch/connection_pool.py
Comment thread httpx/dispatch/connection_pool.py Outdated
Comment thread httpx/dispatch/connection_pool.py Outdated
lovelydinosaur and others added 3 commits December 11, 2019 12:28
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
@lovelydinosaur

Copy link
Copy Markdown
Member Author

Have made some cleanups based on the review.

I'd like for all of this to be a bit tighter, as part of #624, but it seems sensible to approach it incrementally, and at least address the issue for now.

@florimondmanca florimondmanca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit then this looks good to me!

Comment thread httpx/dispatch/connection_pool.py Outdated

@florimondmanca florimondmanca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🎉

@lovelydinosaur
lovelydinosaur merged commit 499de51 into master Dec 12, 2019
@lovelydinosaur
lovelydinosaur deleted the add-time-to-backend branch December 12, 2019 11:52
@jborean93 jborean93 mentioned this pull request Nov 23, 2020
1 of 2 tasks
Kludex referenced this pull request in pydantic/httpx2 May 11, 2026
@Kludex Kludex mentioned this pull request May 12, 2026
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants