-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consumer onconnect, ondisconnect is not working #4580
Comments
At present, it only works on the provider side. But it would be a good complement if we can add support on the Consumer side. |
I will verify. I believe it starts working now after #4598 is merged. |
confirmed, it doesn't work. We need something like org.apache.dubbo.config.spring.schema.DubboBeanDefinitionParser#parseMethods when process |
In fact the consumer side can also trigger the connected and disconnected methods of ChannelHandler interface of dubbo. |
从实现角度来看,provider和consumer的连接断开都应该可以增加一定的事件。 如果要在consumer端支持,应该需要调用一个独立的类和方法来完成, 如static方法。 暂时不建议增加。 From an implementation perspective, the disconnection between the provider and the consumer should be able to increase certain events. If you want to support it on the consumer side, you should call a separate class and method to complete it. It is not recommended to increase for the time being. |
Environment
Steps to reproduce this issue
code:
Expected Result
it should invoke onconnect ,ondisconnect callback when the consumer connect the provider
Actual Result
it does not work
is it a bug?or these callback only be used on provider side?
The text was updated successfully, but these errors were encountered: