-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Use Environment.TickCount64 instead of UtcNow in SignalR #34382
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
Conversation
src/SignalR/common/Http.Connections/src/Internal/HttpConnectionContext.cs
Outdated
Show resolved
Hide resolved
src/SignalR/common/Http.Connections/src/Internal/HttpConnectionDispatcher.cs
Outdated
Show resolved
Hide resolved
Bump |
src/SignalR/common/Http.Connections/src/Internal/HttpConnectionManager.cs
Outdated
Show resolved
Hide resolved
/// <summary> | ||
/// Retrieves the current UTC system time. | ||
/// </summary> | ||
public DateTimeOffset UtcNow => DateTimeOffset.UtcNow; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean there were no tests for AuthenticationExpiration
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are, but they aren't using the clock abstraction.
src/SignalR/server/SignalR/test/HubConnectionHandlerTestUtils/MockSystemClock.cs
Outdated
Show resolved
Hide resolved
src/SignalR/common/Http.Connections/src/Internal/HttpConnectionManager.cs
Show resolved
Hide resolved
Co-authored-by: Stephen Halter <[email protected]>
src/SignalR/server/SignalR/test/HubConnectionHandlerTestUtils/MockSystemClock.cs
Outdated
Show resolved
Hide resolved
…MockSystemClock.cs
Did we file the issue for kestrel? |
Issue is still open for doing the same in Kestrel #13628 |
Part of #13628
Kestrel is proving to be more difficult than I thought it would, so not including it here.