Expose transport retries as connect_retries in client options#2517
Expose transport retries as connect_retries in client options#2517zanieb wants to merge 3 commits intoencode:masterfrom
connect_retries in client options#2517Conversation
|
See encode/httpcore#643 to resolve type errors (outside of tests) by adding |
|
Ah neat. So... I don't think we need test cases where what we're doing is passing through an argument, and then inspecting the private implementation details to see that it's been set. It should be enough that we have type-checking throughout. The I wonder if we should be avoiding too much top-level configuration API on the client. Perhaps |
I agree this is really awkward — however, since the behavior differs if you provide your own transport I feel we need a little bit of test coverage? I'm definitely okay with whatever you're comfortable with. Perhaps we should throw an error if you provide a value for this and a transport.
I agree it'd be nice to keep things out of the top-level. Limits feels like a weird place though — everything there is non-zero by default. I don't feel like this setting is adjusting a reasonable upper bound (as limits imply), it's enabling behavior. |
|
My need for this is not pressing as I've implemented wrapper around the client but I'd love to keep discussing the best way to handle this when you have time! |
Opening this draft of previously discussed addition of an option to set connect retries on the client.
Next steps: