rickonji opened a new issue #1078: brpc stream模式是否支持发送“完成”标记? URL: https://github.com/apache/incubator-brpc/issues/1078 深入阅读了brpc stream的源码,有以下问题 场景: client用stream方式向server发一个文件,当全部包都发过去后,server回复client一个确认 那么server怎么知道client发完包了呢?似乎必须在用户逻辑中完成,比如client发完包后,再发送一个“End”字符串,Server在读取到“End”后,就可以回复“”Ok“。框架没有提供这样的的api。 本来以为StreamClose是干这个的,结果发现调用了Close后,流就没法用了。。。。 grpc就友好很多,双向流模式调用WriteDone后流还在,对方还能继续发消息。
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
