-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Change calls to tokio::spawn to use DefaultExecutor::current().execute() instead #1566
Comments
It seems removing the call to |
The panic is coming from calling The reason this is happening in your example is because after getting the Note that the |
So I've repurposed this issue to track some change that could be done in hyper to make these errors clear. If a user doesn't configure to use a custom
|
This is the http code I hacked together
Here are my tests:
The 200 tests are working nicely, but the 302 test keeps failing with a panic from hyper/tokio. It seems this is because the url in the 302 test has no response body (
Content-Lenght: 0
) which may cause issues withbody.concat2()
. Note that this doesn't happen every time, but very often.The text was updated successfully, but these errors were encountered: