geforkt von Mirrors/Velocity
Fix not forwarding channelReadComplete events in some cases
Dieser Commit ist enthalten in:
Ursprung
d3e1b358fb
Commit
c32bc88064
@ -62,8 +62,12 @@ public class AutoReadHolderHandler extends ChannelDuplexHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
|
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
|
||||||
if (this.queuedMessages.isEmpty()) {
|
if (ctx.channel().config().isAutoRead()) {
|
||||||
ctx.fireChannelReadComplete();
|
if (!this.queuedMessages.isEmpty()) {
|
||||||
|
this.drainQueuedMessages(ctx); // will also call fireChannelReadComplete()
|
||||||
|
} else {
|
||||||
|
ctx.fireChannelReadComplete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren