Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

HttpClient treatment in C# and effect on IDS #3628

Open
1 task done
ghost opened this issue Apr 10, 2017 · 0 comments
Open
1 task done

HttpClient treatment in C# and effect on IDS #3628

ghost opened this issue Apr 10, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 10, 2017

  • I read and understood how to enable logging

Question / Issue

HttpClient in C# is a disposable object that does not release socket on dispose. This has an effect of opening a new socket for each new HttpClient that is closed only due to inactivity.
We have experienced a delay on token checking that went into 20 seconds because of this issue.

Please consider having HttpClient as static throughout the entire Identity Server or Identity Server can experience port exhaustion. This can be turn into an attack rather quickly as well.

Test: Repeatedly run the relevant code where HttpClient is created and use netstat to check the occupied sockets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant