Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Hangs during high request loads #52

Closed
blinkybill opened this issue Jul 11, 2018 · 1 comment
Closed

Hangs during high request loads #52

blinkybill opened this issue Jul 11, 2018 · 1 comment

Comments

@blinkybill
Copy link

Thank you for this great sample. Has this code been tested with production loads? It would be a good idea to update the sample code to include this kind of lock handling below so if something goes wrong with entering a lock the exiting of the lock does not get attempted, further degrading performance.

var lockIsHeld = false;
try {
try {
}
finally {
rwl.EnterReadLock();
lockIsHeld = true;
}

// Do work here
}
finally {
if (lockIsHeld) {
rwl.ExitReadLock();
}
}

@jmprieur
Copy link
Contributor

Closing this issue as this sample is being archived and replaced by a newer ASP.NET Core 3.1 sample.
See Readme.md

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

No branches or pull requests

2 participants