-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add | Use Minimum Login Timeout as 1 sec in .NET Core and enable behavior by default #2012
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2012 +/- ##
==========================================
- Coverage 70.60% 69.93% -0.68%
==========================================
Files 306 305 -1
Lines 61800 61802 +2
==========================================
- Hits 43636 43222 -414
- Misses 18164 18580 +416
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
LGTM, but why are we adding an app context switch to address a bug? Whoever is facing this edge case situation must have suffered from it. Is this just to avoid breaking changes? |
The switch was already there. This just brings it to netcore and turns it on, by default. Keeping it around will let customers turn it off, just in case there was a good reason someone added it to netfx in the past. When we were talking about it, we couldn't think of a good reason the change was put under a context switch. It seemed like there were two possible side effects of the change under the switch.
|
This PR brings over app context switch "UseOneSecFloorInTimeoutCalculationDuringLogin" to use 1 second instead of 0 seconds as minimum login timeout to prevent indefinite timeouts and potential application hangs.
Also enables the app context switch by default, in both NetFx and NetCore.
NOTE: Public documentation for this App Context switch needs to enable support in .NET Core and .NET Standard when this change gets released.