kfstorm opened a new issue, #2348: URL: https://github.com/apache/brpc/issues/2348
on_received_messages看起来是个同步函数。如何做到像grpc那样在OnReadDone里处理消息,处理完后自己调用StartRead读取下一条消息? 比如服务端收到消息后需要把消息通过网络转发给另一个服务,如果只能同步处理消息,那么这里就会阻塞线程。如果服务端收到数据后用另一个线程去处理消息,那么就没办法做到反压了。 -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
