Skip to content

Commit b107e73

Browse files
authored
Fix certificate caching timeout in WinHttpHandler (#115144)
1 parent 4eb1693 commit b107e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class WinHttpHandler : HttpMessageHandler
4848

4949
private static readonly Lazy<bool> s_supportsTls13 = new Lazy<bool>(CheckTls13Support);
5050
private static readonly TimeSpan s_cleanCachedCertificateTimeout = TimeSpan.FromMilliseconds((int?)AppDomain.CurrentDomain.GetData("System.Net.Http.WinHttpCertificateCachingCleanupTimerInterval") ?? 60_000);
51-
private static readonly long s_staleTimeout = (long)(s_cleanCachedCertificateTimeout.TotalSeconds * Stopwatch.Frequency / 1000);
51+
private static readonly long s_staleTimeout = (long)(s_cleanCachedCertificateTimeout.TotalSeconds * Stopwatch.Frequency);
5252

5353
[ThreadStatic]
5454
private static StringBuilder? t_requestHeadersBuilder;

0 commit comments

Comments
 (0)