stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.38k stars 125 forks source link

Unclear how to send an empty response stream #184

Open mzabaluev opened 4 years ago

mzabaluev commented 4 years ago

Steps to repro with 0.8.0 and master:

This results in an internal error in the server sent as a response to the client:

thread 'main' panicked at 'feature: GrpcMessage(GrpcMessageError { grpc_status: 13, grpc_message: "grpc server handler did not close the sender" })', /somewhere/grpc-rust/grpc-examples/route_guide/src/client.rs:37:23

Same happens if the method does o.pump(stream::empty(), resp).