优化ProtocolCodec.start

This commit is contained in:
redkale
2023-05-27 22:10:50 +08:00
parent 2202465e31
commit 29d45b1e3d

View File

@@ -109,7 +109,7 @@ class ProtocolCodec implements CompletionHandler<Integer, ByteBuffer> {
return; return;
} }
try { try {
channel.startRead(this); channel.readRegisterInIOThread(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)) {