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
Blocking client hangs #765
Comments
Likely related to #746 |
I have the same problem with an existing program which I upgraded to
|
Yea, closing as dupe of #746. Still investigating there. |
Confirm this was solved by #746's resolution (update to Tokio 0.2.8). Thanks! |
After having updated my program to use tokio 0.2.8 things are working fine again. Thanks to all who were involved in resolving the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm seeing sporadic hangs after making a call to the
get()
andsend()
methods of the blocking client in reqwest 0.10.0. This happens every few runs of my short test case below (you might need a small shell loop to see the error).Conditions:
4.15.0-72-generic
,x86_64
rustc 1.40.0 (73528e339 2019-12-16)
, installed viarustup
reqwest = { version = "0.10.0", features = ["blocking"] }
The calls to
get()
andsend()
complete, and I can show the response, but the program hangs in afutex(2)
call right after that. This seems like some sort of race and I'm not certain that the problem is in reqwest but I don't have a lot going on:"End" is printed when the program hangs but
main()
does not return.Output from
strace(1)
looks identical in both successful and hanging cases, except that aFUTEX_WAIT
never returns in the hanging case. Here is the tail of that output for the hanging case (terminated withSIGINT
):Note that there are two futexes here: the first (30s timeout) is from the
Default
implementation ofTimeout
in blocking/client.rs. This seems okay. The second (hanging) mutex address appears earlier in thestrace(1)
output:I'm not sure where this is coming from. Hints on how to progress debugging this would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: