-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpWebRequest creates many connections #59207
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsSteps to reproduce
Expected behaviorI was expecting to see few TCP connections but there are hundreds of them with the TIME_WAIT status: If I change the target framework of the Console Application to Notes
|
Should be fixed in dotnet/corefx#41462 which went into 5.0. If you switch to .NET 5.0 do you still see this problem? In .NET Core |
@ManickaP .Net5.0 does not have the issue |
@MhdTlb thanks for the confirmation. How much is the issue impacting you? And would you be able to upgrade to .NET 5.0 (or 6.0 which is RC1 now)? |
Triage: Addressed in 5.0+. Closing. |
@ManickaP Unfortunately, we can not upgrade to .NET 5.0 right now. Is there a workaround to keep using 3.1? |
@MhdTlb there is no workaround to our best knowledge. Why cannot you upgrade to .NET 5.0 now? What limits you? |
@MhdTlb you'd need use |
Steps to reproduce
Httpwebrequesttest.Run
method from the Console Appnetstat -na | find "80"
Expected behavior
I was expecting to see few TCP connections but there are hundreds of them with the TIME_WAIT status:
... TCP [::1]:63056 [::1]:80 TIME_WAIT ...
If I change the target framework of the Console Application to
net462
and I run the netstat command, i can see few TCP connections with status ESTABLISHEDNotes
The text was updated successfully, but these errors were encountered: