Skip to content

Regression 0.11.12 -> 0.11.13: hangs when processing body in Service #1414

Closed
@sanmai-NL

Description

@sanmai-NL

A Service with the following endpoint in its call method:

(Post, "/endpoint") => {
    debug!("Hang?");
    let fut = body
        .concat2()
        .and_then(move |body: hyper::Chunk| {
            debug!("No");
            Ok(())
        })
        .and_then(|_| {
            Ok(Response::new().with_status(StatusCode::Ok))
        });
    Box::new(fut)
}

Hangs under 0.11.13, but not under 0.11.12. As tested with:

curl -k -XPOST 'https://localhost:4443/endpoint' -d '[[]]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-serverArea: server.C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions