-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add url connection and read timeouts #28
Conversation
@pavlogs Don't we want to make this timeout configurable? Maybe 10 seconds is not enough in some projects?.. |
@asolntsev Good point. IMHO a separate configuration class should be introduced to have greater flexibility and handle such cases. |
Maybe just add another parameter to the related methods? Any experience with configuration class shows that such a class can quickly grow into an uncontrollable monster with tons of settings. I am a bit afraid of it. |
Would agree about this statement 🙂
That method is private so it won't affect publicly available api. As an option and to be consistent with a current approach, another constructor could be introduced (see example commit). However it will increase complexity of existing constructors (eg. this two). |
This private method is used in exactly two public constructors:
I agree, adding 2 more methods would be too much. |
Hello, @asolntsev 👋 |
@pavlogs Yes, we can do a similar change in Sorry, I didn't undestand how making |
Excuse me for any possible confusion. The general idea was to make timeout configurable. I thought it would be clear from the added tests how it could be achieved. From the framework point of view only readBytes with |
Resolution for Issue #8