yichenluan commented on issue #1047: URL: https://github.com/apache/incubator-brpc/issues/1047#issuecomment-618808508
> 我这边也有类似的需求,要求单链接严格有序 > 我看socket部分的代码,epoll过来的事件,是按照fd起bthread处理的,如果前一个pipeline特别大,后一个特别小,感觉是有可能在InputManager这里有两个InputManager并发的情况出现,即使都走到Parse这里也可能是并行的Parse 这个不会呀,InputMessenger 中是 OnNewMessages 来循环处理 socket 的读 event,我现在的处理方式就是在 Parse 阶段完成消息的 decode、process,对于异步处理,会通过 bthread 的 CountdownEvent 来将 bthread 休眠 ---------------------------------------------------------------- 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]
