Skip to content
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

bug #9

Open
cmgyqjj opened this issue Jul 17, 2023 · 0 comments
Open

bug #9

cmgyqjj opened this issue Jul 17, 2023 · 0 comments

Comments

@cmgyqjj
Copy link

cmgyqjj commented Jul 17, 2023

The channelRead0 method in RpcHandler returns error=null by default in its response.
However, in RpcProxy, response.isError() is used to determine whether an exception should be thrown.
The implementation of response.isError() is shown below:

public boolean isError(){
		return error == null;
	}

This can cause errors even when the operation is executed normally.

这里是中文翻译

在RpcHandler的channelRead0方法中,response默认返回error=null 但是在RpcProxy中,使用response.isError()来是否执行异常,这将会导致正常执行也出错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant