Skip to content

Commit

Permalink
Fixes #10120 - OOME due to HttpChannelState._onIdleTimeout
Browse files Browse the repository at this point in the history
When `HttpChannelState._onIdleTimeout` was introduced, it was forgotten to null it out in recycle().

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Jul 18, 2023
1 parent c946a41 commit abc01d5
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,23 @@ public void recycle()
// applications cannot use request/response/callback anymore.
_request._httpChannelState = null;

// Break the links with the upper and lower layers.
_request = null;
_response = null;
_stream = null;
_streamSendState = StreamSendState.SENDING;

// Recycle.
_responseHeaders.reset();
_handling = null;
_handled = false;
_streamSendState = StreamSendState.SENDING;
_callbackCompleted = false;
_callbackFailure = null;
_request = null;
_response = null;
_oldIdleTimeout = 0;
// Break the link between channel and stream.
_stream = null;
_committedContentLength = -1;
_onContentAvailable = null;
_onIdleTimeout = null;
_failure = null;
_onFailure = null;
_callbackFailure = null;
}
}

Expand Down

0 comments on commit abc01d5

Please sign in to comment.