Replies: 1 comment 1 reply
-
That's neatly coherent with the rest of the API there, yup. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be nice for
httpx
(andhttpcore
) if it were possible to set the maximum lifetime of a keepalive connection.This is different from the
keepalive_expiry
parameter, in that:keepalive_expiry
: starts once a given connection becomes idle, corresponds tolibcurl
'sCURLOPT_MAXAGE_CONN
;keepalive_max_lifetime
(name to be workshopped): starts as soon as the connection is created, corresponds tolibcurl
'sCURLOPT_MAXLIFETIME_CONN
;This would probably be modeled as a new field in
httpx.Limits
andhttpcore.ConnectionPool
.Beta Was this translation helpful? Give feedback.
All reactions