Skip to content

Commit

Permalink
fix #323 When received the last HTTP packet but still sending the req…
Browse files Browse the repository at this point in the history
…uest, force the channel close
  • Loading branch information
violetagg committed May 1, 2018
1 parent ac103c0 commit dac97b5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,9 @@ protected void onInboundNext(ChannelHandlerContext ctx, Object msg) {
}
//force auto read to enable more accurate close selection now inbound is done
channel().config().setAutoRead(true);
if (markSentBody()) {
markPersistent(false);
}
onHandlerTerminate();
return;
}
Expand Down

0 comments on commit dac97b5

Please sign in to comment.