-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add tests for IO Error retries #13627
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
Conversation
93bbfd1 to
0309430
Compare
ce49c26 to
4802438
Compare
0309430 to
ca60ba7
Compare
fad5a74 to
3f42b70
Compare
|
|
Cargo.toml
Outdated
| windows-result = { version = "0.3.0" } | ||
| windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Ioctl", "Win32_System_IO", "Win32_System_Registry"] } | ||
| wiremock = { version = "0.6.2" } | ||
| wiremock = { git = "https://github.com/konstin/wiremock-rs", rev = "131ad0a3e7a247c867fc290319047fc086995271" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you waiting to merge until this is accepted upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not, can you add a comment explaining the respond_with_err change we're using?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since upstream is not responding, I'll fork into the astral org and tag the commit instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to out fork
Often, HTTP requests don't fail due to server errors, but from spurious network errors such as connection resets. reqwest surfaces these as `io::Error`, and we have to handle their retrying separately.
3f42b70 to
61c7815
Compare
Often, HTTP requests don't fail due to server errors, but from spurious network errors such as connection resets. reqwest surfaces these as
io::Error, and we have to handle their retrying separately.Companion PR: LukeMathWalker/wiremock-rs#159