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
Dropping EventLoopHandle after running a request causes the program to hang. #80
Comments
Good catch it's really interesting why it fails. |
I have the same issue |
FYI: But if I use an event loop from tokio everything is OK |
After test, I think it is hang at Move the |
Finally, I have known what happened. It hangs at When we want to shutdown the The simplest way (but stupid?) to fix this bug is: after set the done flag, send to it a new message. |
Perhaps we could supply a timeout to turn? |
@yangby-cryptape is correct I think. I added |
Resolved via #144 |
Dropping
EventLoopHandle
before droppingWeb3<T>
causes a hang if at least one request has been issued. Example code:This became an issue when I created a struct that owned both
EventLoopHandle
andWeb3<T>
. If my struct fields were in the wrong order, the program would hang when attempting to drop my struct. If I switched the order of the fields, the program would run to completion.The text was updated successfully, but these errors were encountered: