mirror of https://github.com/grpc/grpc-java.git
netty: complete promise when RequestMessagesCommand
This commit is contained in:
parent
a702102e41
commit
af2434375a
|
|
@ -317,6 +317,7 @@ class NettyServerHandler extends AbstractNettyHandler {
|
||||||
sendResponseHeaders(ctx, (SendResponseHeadersCommand) msg, promise);
|
sendResponseHeaders(ctx, (SendResponseHeadersCommand) msg, promise);
|
||||||
} else if (msg instanceof RequestMessagesCommand) {
|
} else if (msg instanceof RequestMessagesCommand) {
|
||||||
((RequestMessagesCommand) msg).requestMessages();
|
((RequestMessagesCommand) msg).requestMessages();
|
||||||
|
promise.setSuccess();
|
||||||
} else if (msg instanceof CancelServerStreamCommand) {
|
} else if (msg instanceof CancelServerStreamCommand) {
|
||||||
cancelStream(ctx, (CancelServerStreamCommand) msg, promise);
|
cancelStream(ctx, (CancelServerStreamCommand) msg, promise);
|
||||||
} else if (msg instanceof ForcefulCloseCommand) {
|
} else if (msg instanceof ForcefulCloseCommand) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue