Skip to content

Commit

Permalink
Do not add IdleTimeoutHandler while processing pipelined requests (#3124
Browse files Browse the repository at this point in the history
)
  • Loading branch information
violetagg committed Mar 29, 2024
1 parent bbccac2 commit 049e332
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -362,6 +362,8 @@ public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
.execute(this);
}
else {
IdleTimeoutHandler.addIdleTimeoutHandler(ctx.pipeline(), idleTimeout);

ctx.read();
}
return;
Expand Down Expand Up @@ -461,8 +463,6 @@ public void operationComplete(ChannelFuture future) {
}
}

IdleTimeoutHandler.addIdleTimeoutHandler(future.channel().pipeline(), idleTimeout);

HttpServerOperations.cleanHandlerTerminate(future.channel());
}

Expand Down

0 comments on commit 049e332

Please sign in to comment.