bailiyang commented on issue #1047: URL: https://github.com/apache/incubator-brpc/issues/1047#issuecomment-619477365
> 哦,我就是指的普通的brpc,类似于grpc unary,所以我就这么叫了 > > 我大概理解你的意思了,我记得之前有人问过保序,jamesge的说法是只有stream才能支持,其他的方式都保证不了。在普通的brpc上支持保序不知道改动大不大,估计涉及到brpc内部的一些东西,可能也不太好弄 普通的brpc接口,失去有序性主要是在CutMessage之后吧,我看了EventDispatch到Process Request层的所有代码流程,没有发现失序的地方,单个fd用原子量加锁触发,看起来不会在CutMessage之前失去顺序 如果从brpc::Socket+brpc::Accepter这一层复用的话,应该不会出现失序的情况 ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
