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