-
-
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
Multipart broken with AsyncRead #1380
Comments
Yes, the bounds were changed here. Off the top of my head I think that The "read everything to a Vec first, then use a synchronous multipart parser" is still possible, but discouraged for the same reason as before:
Instead, you should use If you are still having trouble after that, please ask! This is all really helpful feedback that can help inform the migration guide for 0.5. |
I actually hadn't tried turning it all into The documentation you referred to mentions a form of cooperative multitasking and warns for mutexes. I actually use |
They apply to just about all code using Rust's Declaring a route as a |
Looks like this has been resolved! |
I'm running a little internal web service on nightly - there's some features I'm using that aren't yet in stable. Trying to stay up to date with the latest, and am a little stumped on recent async changes.
For some administrative functionality I'm using Multipart 0.16.1. I see there's 0.17.0 and possibly Multipart-async. Before I try those, I'd like to have matters working again. Or else I would lose sight of what's causing problems.
This endpoint is pretty much a one-off and won't be called regularly, so performance isn't at all a priority. I had something along the lines of;
This now gives me;
And I see in 5d439ba this got dropped;
Now, figuring this out took a little longer than expected so I was hoping for a quick fix based on Shepmaster's approach;
Except this sadly doesn't seem to work;
block_on
never returns. I'm still reading up on how the async/await functionality works, and am afraid I'm just out of my depth here. How do I get this going again? Much obliged.The text was updated successfully, but these errors were encountered: