jamesge commented on code in PR #1791:
URL: https://github.com/apache/incubator-brpc/pull/1791#discussion_r896970940
##########
src/brpc/socket.cpp:
##########
@@ -875,6 +870,12 @@ int Socket::SetFailed() {
return SetFailed(EFAILEDSOCKET, NULL);
}
+int Socket::SetFailedOnCreate(int error_code, const char* error_text) {
+ _user = NULL; // Avoid calling _user->BeforeRecycle() which may cause dead
lock or double free
Review Comment:
这个是不是可以反过来在BeforeRecycle前判一下rpc failed?
--
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]