You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/03/31 12:08:07 UTC
[GitHub] [incubator-brpc] rickonji opened a new issue #1078: brpc stream模式是否支持发送“完成”标记?
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] chenzhangyi commented on issue #1078: brpc stream模式是否支持发送“完成”标记?
Posted by GitBox <gi...@apache.org>.
chenzhangyi commented on issue #1078: brpc stream模式是否支持发送“完成”标记?
URL: https://github.com/apache/incubator-brpc/issues/1078#issuecomment-606601855
目前的框架不支持,可以自己encode 数据.
框架支持的话,需要升级下协议支持在数据流里面有序插入一些控制流.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] rickonji commented on issue #1078: brpc stream模式是否支持发送“完成”标记?
Posted by GitBox <gi...@apache.org>.
rickonji commented on issue #1078: brpc stream模式是否支持发送“完成”标记?
URL: https://github.com/apache/incubator-brpc/issues/1078#issuecomment-606587991
@jamesge
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org