Flashes Home Search Notifications Sign in Post
Gerald Versluis @jfversluis.dev · 17d

One HttpClient per request is not the fix. It owns a connection pool. Dispose it constantly and you churn connections/ports. Use one of these: • long-lived HttpClient + PooledConnectionLifetime • short-lived clients from IHttpClientFactory

7 likes 2 replies

?

Replies

Gerald Versluis · 17d

Docs: https://learn.microsoft.com/dotnet/fundamentals/networking/http/httpclient-guidelines

Wilbert van Dolleweerd · 17d

Or use something like Flurl.

Legal

Privacy Policy Terms and Conditions

Contact

Support FAQs

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store