Skip to content

Issue when combining with tonic-rest #2586

@vladgon

Description

@vladgon

Bug Report

Version

0.14.5

Platform

Crates

Description

issue when working with tonic-rest https://github.com/hyperium/tonic/blob/master/tonic-web/src/service.rs#L111 should continue processing similar to https://github.com/hyperium/tonic/blob/master/tonic-web/src/service.rs#L101
When executing tonic-rest only http2 works

Server::builder()
        .accept_http1(true)
        .layer(tonic_web::GrpcWebLayer::new())
        .add_routes(
            proto::rest::proto_rest_router(Arc::new(
                some_service_with_no_interceptors.clone(),
            ))
            .into(),
        )
         .serve_with_shutdown(address, async {
            match signal {
                Some(signal) => signal.cancelled().await,
                None => std::future::pending::<()>().await,
            }
        })
        .await?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions