chenBright commented on issue #2424: URL: https://github.com/apache/brpc/issues/2424#issuecomment-1782243214
如果只需要在Socket Failed的时候回调的话,使用Socket::NotifyOnFailed可以实现OnClosedConnection的回调。 https://github.com/apache/brpc/blob/761b399e50ba95dddec363662a1bf0b42254f18f/src/brpc/socket.cpp#L1044-L1058 可以参考Controller::NotifyOnCancel的用法: https://github.com/apache/brpc/blob/761b399e50ba95dddec363662a1bf0b42254f18f/src/brpc/controller.cpp#L539-L561 -- 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]
