-
Notifications
You must be signed in to change notification settings - Fork 146
fix(client): race in connection errors propagation #184
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
fix(client): race in connection errors propagation #184
Conversation
48eee2b
to
f76661f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
f76661f
to
faeeee6
Compare
Thanks for fixing this, I now see how this fits together, makes sense! I wonder, can you think of a way we could deterministically test this? We can control a mock IO pretty strictly with |
I'll look into it, though I should mention that after something like 2 days or more with grok3 I failed to make tests here in |
success EDIT: I haven't really looked at the code(not that I'd really understand it), it's grok3 generated, but I tested it with and without PR, seems reliable.
|
faeeee6
to
9a0b4a3
Compare
Awesome, glad there's code that can test this! Could you remove the part about using |
as requested in hyperium#184 (comment)
Fix a race condition in the legacy HTTP client's connection setup where connection errors (e.g., TLS failures, unexpected server responses) were discarded, resulting in vague ChannelClosed errors. seanmonstar/reqwest#2649
in legacy_client tests only
as requested in hyperium#184 (comment)
5be85ff
to
0c1a50e
Compare
done, and rebased on current master (8805922) |
Fix a race condition in the legacy HTTP client's connection setup where connection errors (e.g., TLS failures, unexpected server responses) were discarded, resulting in vague ChannelClosed errors.
seanmonstar/reqwest#2649