-
Notifications
You must be signed in to change notification settings - Fork 150
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
Rework of timeout errors #195
Conversation
Why: for better support of the floating point values in `read_timeout` and `open_timeout` options.
Hi @907th, thanks for the PR, this is good stuff and my opinion is to approve and merge.
My concerns are:
|
Thank you for the PR! @rogerleite is correct to point out this breaking change could be a potential concern; we can't anticipate what depends on |
Yes. And if someone raises
Yes, I think.
The main goal was to introduce a single exception class for all different adapater-specific timeout errors. I found that To be honest, I've never seen such an approach before. Typically, if I need to wrap several errors with a single error class I just ============= I think I should split this PR into three parts:
so you could merge them separately. Part 1 is just a bug fix, Part 2 - enhancement without breaking changes, and only Part 3 will introduce a breaking change. I'll try to find time next week to do that. |
@907th the split plan seems very good.
We can merge the 1 and 2 on 2.4.x version.
TimeoutError improvement we merge on 2.5.x and describe it how to deal with TimeoutError module. What do you think @pcai? Thanks and good job! 👍 |
This PR:
read_timeout
,open_timeout
options to thehttp
adapter.write_timeout
option to all adapters.spec/httpi/adapter
.HTTPI::TimeoutError
.HTTPI::TimeoutError
is a module now (it was a class before this PR). I think that this is a only breaking change.