readRegisterInIOThread

This commit is contained in:
redkale
2024-10-08 16:01:11 +08:00
parent a542c03e8b
commit 59ad1d8617

View File

@@ -114,9 +114,7 @@ class ProtocolCodec implements CompletionHandler<Integer, ByteBuffer> {
return;
}
try {
// channel.readRegisterInIOThread(this);
// 服务端接收到一个SocketConnection后调用因此不存在并发readRegister
channel.readRegister(this);
channel.readRegisterInIOThread(this);
} catch (Exception te) {
channel.dispose(); // response.init(channel); 在调用之前异常
if (context.logger.isLoggable(Level.FINEST)) {