Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlinhui committed Apr 24, 2022
1 parent dba72df commit b35371b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected void channelRead0(ChannelHandlerContext ctx, byte[] bytes) throws Exce
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
ctx.channel().config().setAutoRead(true);
channel.config().setAutoRead(true);
send(MessageType.TYPE_DISCONNECTED, EmptyArrays.EMPTY_BYTES);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ protected void channelRead0(ChannelHandlerContext ctx, byte[] bytes) throws Exce
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
ctx.channel().config().setAutoRead(true);
channel.config().setAutoRead(true);
send(MessageType.TYPE_DISCONNECTED, EmptyArrays.EMPTY_BYTES, ctx);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
if (serverChannel == null) {
return;
}
serverChannel.config().setAutoRead(true);
send(serverChannel, ctx, domain, MessageType.TYPE_DISCONNECTED, EmptyArrays.EMPTY_BYTES);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
}
}
domainList.clear();
for (Channel channel : ServerChannelCache.getServerHttpChannelMap().values()) {
channel.config().setAutoRead(true);
}
}


Expand Down

0 comments on commit b35371b

Please sign in to comment.