Skip to content

Commit

Permalink
Merge pull request #161 from georgepearman/main
Browse files Browse the repository at this point in the history
Release reference to HttpStreamsServerHandler.lastRequest when possible
  • Loading branch information
mkurz authored Oct 12, 2022
2 parents bd011b4 + 42a8b46 commit deae75c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ protected void sentOutMessage(ChannelHandlerContext ctx) {
if (close) {
ctx.close();
}

// release reference to lastRequest when there are no in flight requests so it can be GC'd
if (inFlight == 0) {
lastRequest = null;
}
}

@Override
Expand Down

0 comments on commit deae75c

Please sign in to comment.