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

BlockingOperationException Occurred #12

Closed
helloktz opened this issue Nov 2, 2017 · 1 comment
Closed

BlockingOperationException Occurred #12

helloktz opened this issue Nov 2, 2017 · 1 comment

Comments

@helloktz
Copy link

helloktz commented Nov 2, 2017

channelFuture.channel().closeFuture().sync().addListener(new ChannelFutureListener() {

不能在同一个线程中调用sync方法,会触发NioEventLoop的死锁检查。 此处sync()方法实际会执行失败。
可以在operationComplete方法结尾尝试System.out.println标志来验证。

@helloktz
Copy link
Author

helloktz commented Nov 2, 2017

#10

@helloktz helloktz closed this as completed Nov 2, 2017
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