How to use RetryAgent with Agent that has multiple Pool connections #3261
vitalygashkov
started this conversation in
General
Replies: 1 comment 2 replies
-
Hmm, haven't dig into it yet but have you tried using the interceptor instead? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran into a problem when trying to use
RetryAgent
with regularAgent
when specifying multiple Pool connections.My goal is to use concurrent download when downloading a large number of small 1-20 MB files. If I understand correctly, there is a
connections
option in theAgent
class for this. But when using it in this way, theSocketError
(like in issue #2412) occurs after some time. So I wanted to useRetryAgent
, but I also got a different error:ClientClosedError: The client is closed
.Here's my part of the code, just for more understanding:
Could you please suggest how to solve this problem? Maybe I'm not using these classes correctly, or maybe it's a bug, or maybe there's just a more concise solution for this.
Beta Was this translation helpful? Give feedback.
All reactions