socket exhaustion in auto render mode #51269
Unanswered
Sander-Brilman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question regarding the auto render mode.
If i have a component that uses the standard HttpClient that is registered in DI in the .Client project and i set that component to auto render mode how will it deal with the registered HttpClient? will it create a new client for every time it renders on the server or will it re-use the same one for each time?
In case 1 you might have a problem with socket exhaustion and with the second case you might have a problem with outdated DNS records.
Normally on the server when we need a HttpClient we use the AddHttpClient method so how will that work with the auto render mode?
Should i just avoid auto rendering components with the HttpClient dependency to be sure?
Beta Was this translation helpful? Give feedback.
All reactions