Need a thread-safe/scalable credential cache for use in System.Net.Http #25447
Labels
area-System.Net.Http
enhancement
Product code improvement that does NOT require public API changes/additions
tenet-performance
Performance related issue
tenet-reliability
Reliability/stability related issue (stress, load problems, etc.)
Milestone
HttpClientHandler implementations supporting preauthenticate currently use a CredentialCache to store credentials, but CredentialCache is not thread-safe, and since requests might be modifying the cache, all access to it needs to be locked. That means when preauthenticate is enabled, every request needs to take the same lock while accessing the cache to see if it contains credentials for use in that request.
The text was updated successfully, but these errors were encountered: