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 2022/12/30 10:18:34 UTC

[GitHub] [incubator-brpc] describe2022 commented on issue #1097: Stream 的on_received_messages怎么进行错误处理?

describe2022 commented on issue #1097:
URL: https://github.com/apache/incubator-brpc/issues/1097#issuecomment-1367840584

   > btw:StreamClose这里有个坑,因为client端上层传给brpc的是handler的指针,有可能上层析构了on_closed还会被调用,有可能访问到已经析构了的数据,这块需要处理一下
   
   请问一下这块怎么处理呢?现在只要调用StreamClose,如您说的handler被紧接着析构掉的话就会发生段错误。


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org