Skip to content

Conversation

@CarnaViire
Copy link
Member

Access _authorityExpireTimer and _altSvcBlocklistTimerCancellation under lock and check for disposed.

Fixes #66782.

@CarnaViire CarnaViire requested a review from a team July 21, 2022 15:15
@ghost ghost added the area-System.Net.Http label Jul 21, 2022
@ghost ghost assigned CarnaViire Jul 21, 2022
@ghost
Copy link

ghost commented Jul 21, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Access _authorityExpireTimer and _altSvcBlocklistTimerCancellation under lock and check for disposed.

Fixes #66782.

Author: CarnaViire
Assignees: -
Labels:

area-System.Net.Http

Milestone: -


Assert.Null(connectTimeoutException.InnerException);
Assert.DoesNotContain("42", e.ToString());
Assert.DoesNotContain("HttpClient.Timeout", e.ToString());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @MihaZupan it failed because some line number in the stacktrace contained 42 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ Thanks for fixing this

antonfirsov added a commit to antonfirsov/runtime that referenced this pull request Jul 21, 2022
Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@CarnaViire CarnaViire merged commit d5d9d52 into dotnet:main Jul 22, 2022
@CarnaViire CarnaViire deleted the authorityExpireTimerFix branch July 22, 2022 06:24
@karelz karelz added this to the 7.0.0 milestone Aug 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HTTP/3] HttpConnectionPool may leak authorityExpireTimer / hit ObjectDisposedException

3 participants