Menu

#HttpClient

2 posts

Feed·
2 of 2 posts
A New HttpClient on Every Call Exhausts TCP Ports. Reuse One Client, or Use IHttpClientFactory
📰
0Read More

A New HttpClient on Every Call Exhausts TCP Ports. Reuse One Client, or Use IHttpClientFactory

DEV Community: dotnet·Aimpex Resources Group LLC·8 days ago
#bJldRtQD
#devtodotnet#devto#dev#client#httpclient

A .NET service that created a new HttpClient for every ERP request ran out of TCP ports. What Microsoft's documentation says, and the two lifetime patterns that fix it.

15s