| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Diagnostics; |
| | | 5 | | using System.Diagnostics.CodeAnalysis; |
| | | 6 | | using System.IO; |
| | | 7 | | using System.Net.Http.Headers; |
| | | 8 | | using System.Net.Http.Metrics; |
| | | 9 | | using System.Net.Security; |
| | | 10 | | using System.Runtime.CompilerServices; |
| | | 11 | | using System.Text; |
| | | 12 | | using System.Threading; |
| | | 13 | | using System.Threading.Tasks; |
| | | 14 | | |
| | | 15 | | namespace System.Net.Http |
| | | 16 | | { |
| | | 17 | | internal abstract class HttpConnectionBase : IDisposable, IHttpTrace |
| | | 18 | | { |
| | | 19 | | protected readonly HttpConnectionPool _pool; |
| | | 20 | | |
| | 0 | 21 | | private static long s_connectionCounter = -1; |
| | | 22 | | |
| | | 23 | | // May be null if none of the counters were enabled when the connection was established. |
| | | 24 | | private ConnectionMetrics? _connectionMetrics; |
| | | 25 | | |
| | | 26 | | // Indicates whether we've counted this connection as established, so that we can |
| | | 27 | | // avoid decrementing the counter once it's closed in case telemetry was enabled in between. |
| | | 28 | | private bool _httpTelemetryMarkedConnectionAsOpened; |
| | | 29 | | |
| | 0 | 30 | | private readonly long _creationTickCount = Environment.TickCount64; |
| | | 31 | | private long? _idleSinceTickCount; |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The context passed to the <see cref="SocketsHttpHandler.ShouldEvictConnection"/> callback. |
| | | 35 | | /// A single instance is reused to avoid allocating a new context for each eviction check. |
| | | 36 | | /// </summary> |
| | | 37 | | private SocketsHttpConnectionEvictionContext? _evictionContext; |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Allocated at establishment only when <see cref="SocketsHttpHandler.ShouldEvictConnection"/> |
| | | 41 | | /// is configured, and canceled (but not disposed, so handed-out tokens stay valid) when the connection closes. |
| | | 42 | | /// </summary> |
| | | 43 | | private CancellationTokenSource? _connectionDisposalCts; |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// The <see cref="HttpConnectionPool.EvictionGeneration"/> at which this connection was last evaluated by the |
| | | 47 | | /// <see cref="SocketsHttpHandler.ShouldEvictConnection"/> callback. |
| | | 48 | | /// </summary> |
| | | 49 | | private int _lastEvictionGeneration; |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Set while the <see cref="SocketsHttpHandler.ShouldEvictConnection"/> callback is running for this connection |
| | | 53 | | /// Ensures the callback is invoked for at most one caller at a time for a given connection. |
| | | 54 | | /// </summary> |
| | | 55 | | private bool _evictionCallbackInProgress; |
| | | 56 | | |
| | | 57 | | private volatile bool _markedForEviction; |
| | | 58 | | |
| | | 59 | | /// <summary>Cached string for the last Date header received on this connection.</summary> |
| | | 60 | | private string? _lastDateHeaderValue; |
| | | 61 | | /// <summary>Cached string for the last Server header received on this connection.</summary> |
| | | 62 | | private string? _lastServerHeaderValue; |
| | | 63 | | |
| | | 64 | | /// <summary>Whether the connection has been marked for eviction by <see cref="SocketsHttpHandler.ShouldEvictCon |
| | 0 | 65 | | public bool MarkedForEviction => _markedForEviction; |
| | | 66 | | |
| | 0 | 67 | | public long Id { get; } |
| | | 68 | | |
| | 0 | 69 | | public Activity? ConnectionSetupActivity { get; private set; } |
| | | 70 | | |
| | 0 | 71 | | public HttpConnectionBase(HttpConnectionPool pool, long connectionId) |
| | 0 | 72 | | { |
| | 0 | 73 | | Debug.Assert(this is HttpConnection or Http2Connection or Http3Connection); |
| | 0 | 74 | | Debug.Assert(pool != null); |
| | 0 | 75 | | _pool = pool; |
| | 0 | 76 | | Id = connectionId; |
| | 0 | 77 | | } |
| | | 78 | | |
| | | 79 | | public HttpConnectionBase(HttpConnectionPool pool, long connectionId, Activity? connectionSetupActivity, IPEndPo |
| | 0 | 80 | | : this(pool, connectionId) |
| | 0 | 81 | | { |
| | | 82 | | // HTTP/1.1 and HTTP/2 connections always target the pool's origin authority. |
| | 0 | 83 | | MarkConnectionAsEstablished(connectionSetupActivity, remoteEndPoint, pool.OriginAuthority); |
| | 0 | 84 | | } |
| | | 85 | | |
| | | 86 | | /// <summary>Allocates the next unique connection id. Generated before the connection object exists so that |
| | | 87 | | /// the same id can be surfaced to <see cref="SocketsHttpHandler.ConnectCallback"/> and telemetry.</summary> |
| | 0 | 88 | | internal static long GetNextConnectionId() => Interlocked.Increment(ref s_connectionCounter); |
| | | 89 | | |
| | | 90 | | protected void MarkConnectionAsEstablished(Activity? connectionSetupActivity, IPEndPoint? remoteEndPoint, HttpAu |
| | 0 | 91 | | { |
| | 0 | 92 | | ConnectionSetupActivity = connectionSetupActivity; |
| | | 93 | | |
| | | 94 | | // The eviction generation baseline and disposal token are only relevant when a ShouldEvictConnection |
| | | 95 | | // callback is configured, so they're only set up in that case. |
| | 0 | 96 | | if (_pool.Settings._shouldEvictConnection is not null) |
| | 0 | 97 | | { |
| | | 98 | | // Baseline the eviction generation to the pool's current value so a freshly established connection isn' |
| | | 99 | | // immediately re-evaluated; it becomes eligible once the next maintenance pass advances the generation. |
| | 0 | 100 | | _lastEvictionGeneration = _pool.EvictionGeneration; |
| | | 101 | | |
| | 0 | 102 | | _connectionDisposalCts = new CancellationTokenSource(); |
| | | 103 | | |
| | | 104 | | // Report the endpoint this connection actually targets, consistent with remoteEndPoint. HTTP/3 passes |
| | | 105 | | // the exact DnsEndPoint it used to establish the QuicConnection (which Alt-Svc may point at an authorit |
| | | 106 | | // distinct from the origin); HTTP/1.1 and HTTP/2 fall back to the pool's origin authority. |
| | 0 | 107 | | _evictionContext = new SocketsHttpConnectionEvictionContext( |
| | 0 | 108 | | connectedEndPoint ?? new DnsEndPoint(authority.IdnHost, authority.Port), |
| | 0 | 109 | | remoteEndPoint, |
| | 0 | 110 | | Id, |
| | 0 | 111 | | this is HttpConnection ? HttpVersion.Version11 : this is Http2Connection ? HttpVersion.Version20 : H |
| | 0 | 112 | | _creationTickCount); |
| | 0 | 113 | | } |
| | | 114 | | |
| | 0 | 115 | | if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) |
| | 0 | 116 | | { |
| | 0 | 117 | | Debug.Assert(_pool.Settings._metrics is not null); |
| | | 118 | | |
| | 0 | 119 | | SocketsHttpHandlerMetrics metrics = _pool.Settings._metrics!; |
| | 0 | 120 | | if (metrics.OpenConnections.Enabled || metrics.ConnectionDuration.Enabled) |
| | 0 | 121 | | { |
| | | 122 | | // While requests may report HTTP/1.0 as the protocol, we treat all HTTP/1.X connections as HTTP/1.1 |
| | 0 | 123 | | string protocol = |
| | 0 | 124 | | this is HttpConnection ? "1.1" : |
| | 0 | 125 | | this is Http2Connection ? "2" : |
| | 0 | 126 | | "3"; |
| | | 127 | | |
| | 0 | 128 | | Debug.Assert(_pool.TelemetryServerAddress is not null, "TelemetryServerAddress should not be null wh |
| | 0 | 129 | | _connectionMetrics = new ConnectionMetrics( |
| | 0 | 130 | | metrics, |
| | 0 | 131 | | protocol, |
| | 0 | 132 | | _pool.IsSecure ? "https" : "http", |
| | 0 | 133 | | _pool.TelemetryServerAddress, |
| | 0 | 134 | | _pool.OriginAuthority.Port, |
| | 0 | 135 | | remoteEndPoint?.Address?.ToString()); |
| | | 136 | | |
| | 0 | 137 | | _connectionMetrics.ConnectionEstablished(); |
| | 0 | 138 | | } |
| | 0 | 139 | | } |
| | | 140 | | |
| | 0 | 141 | | _idleSinceTickCount = _creationTickCount; |
| | | 142 | | |
| | 0 | 143 | | if (HttpTelemetry.Log.IsEnabled()) |
| | 0 | 144 | | { |
| | 0 | 145 | | _httpTelemetryMarkedConnectionAsOpened = true; |
| | | 146 | | |
| | 0 | 147 | | string scheme = _pool.IsSecure ? "https" : "http"; |
| | 0 | 148 | | string host = _pool.OriginAuthority.HostValue; |
| | 0 | 149 | | int port = _pool.OriginAuthority.Port; |
| | | 150 | | |
| | 0 | 151 | | if (this is HttpConnection) HttpTelemetry.Log.Http11ConnectionEstablished(Id, scheme, host, port, remote |
| | 0 | 152 | | else if (this is Http2Connection) HttpTelemetry.Log.Http20ConnectionEstablished(Id, scheme, host, port, |
| | 0 | 153 | | else HttpTelemetry.Log.Http30ConnectionEstablished(Id, scheme, host, port, remoteEndPoint); |
| | 0 | 154 | | } |
| | 0 | 155 | | } |
| | | 156 | | |
| | | 157 | | public void MarkConnectionAsClosed() |
| | 0 | 158 | | { |
| | | 159 | | // Cancel the disposal token used by the ShouldEvictConnection callback. The source is intentionally not |
| | | 160 | | // disposed so tokens already handed to a running callback stay valid (and observe the cancellation). |
| | 0 | 161 | | _connectionDisposalCts?.Cancel(); |
| | | 162 | | |
| | 0 | 163 | | if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: En |
| | | 164 | | |
| | 0 | 165 | | if (HttpTelemetry.Log.IsEnabled()) |
| | 0 | 166 | | { |
| | | 167 | | // Only decrement the connection count if we counted this connection |
| | 0 | 168 | | if (_httpTelemetryMarkedConnectionAsOpened) |
| | 0 | 169 | | { |
| | 0 | 170 | | if (this is HttpConnection) HttpTelemetry.Log.Http11ConnectionClosed(Id); |
| | 0 | 171 | | else if (this is Http2Connection) HttpTelemetry.Log.Http20ConnectionClosed(Id); |
| | 0 | 172 | | else HttpTelemetry.Log.Http30ConnectionClosed(Id); |
| | 0 | 173 | | } |
| | 0 | 174 | | } |
| | 0 | 175 | | } |
| | | 176 | | |
| | | 177 | | public void MarkConnectionAsIdle() |
| | 0 | 178 | | { |
| | 0 | 179 | | _idleSinceTickCount = Environment.TickCount64; |
| | 0 | 180 | | if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: true); |
| | 0 | 181 | | } |
| | | 182 | | |
| | | 183 | | public void MarkConnectionAsNotIdle() |
| | 0 | 184 | | { |
| | 0 | 185 | | _idleSinceTickCount = null; |
| | 0 | 186 | | if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.IdleStateChanged(idle: false); |
| | 0 | 187 | | } |
| | | 188 | | |
| | | 189 | | /// <summary>Uses <see cref="HeaderDescriptor.GetHeaderValue"/>, but first special-cases several known headers f |
| | | 190 | | public string GetResponseHeaderValueWithCaching(HeaderDescriptor descriptor, ReadOnlySpan<byte> value, Encoding? |
| | 0 | 191 | | { |
| | 0 | 192 | | return |
| | 0 | 193 | | descriptor.Equals(KnownHeaders.Date) ? GetOrAddCachedValue(ref _lastDateHeaderValue, descriptor, value, |
| | 0 | 194 | | descriptor.Equals(KnownHeaders.Server) ? GetOrAddCachedValue(ref _lastServerHeaderValue, descriptor, val |
| | 0 | 195 | | descriptor.GetHeaderValue(value, valueEncoding); |
| | | 196 | | |
| | | 197 | | static string GetOrAddCachedValue([NotNull] ref string? cache, HeaderDescriptor descriptor, ReadOnlySpan<byt |
| | 0 | 198 | | { |
| | 0 | 199 | | string? lastValue = cache; |
| | 0 | 200 | | if (lastValue is null || !Ascii.Equals(value, lastValue)) |
| | 0 | 201 | | { |
| | 0 | 202 | | cache = lastValue = descriptor.GetHeaderValue(value, encoding); |
| | 0 | 203 | | } |
| | 0 | 204 | | Debug.Assert(cache is not null); |
| | 0 | 205 | | return lastValue; |
| | 0 | 206 | | } |
| | 0 | 207 | | } |
| | | 208 | | |
| | | 209 | | public abstract void Trace(string message, [CallerMemberName] string? memberName = null); |
| | | 210 | | |
| | | 211 | | protected void TraceConnection(Stream stream) |
| | 0 | 212 | | { |
| | 0 | 213 | | if (stream is SslStream sslStream) |
| | 0 | 214 | | { |
| | | 215 | | #pragma warning disable SYSLIB0058 // Use NegotiatedCipherSuite. |
| | 0 | 216 | | Trace( |
| | 0 | 217 | | $"{this}. Id:{Id}, " + |
| | 0 | 218 | | $"SslProtocol:{sslStream.SslProtocol}, NegotiatedApplicationProtocol:{sslStream.NegotiatedApplicatio |
| | 0 | 219 | | $"NegotiatedCipherSuite:{sslStream.NegotiatedCipherSuite}, CipherAlgorithm:{sslStream.CipherAlgorith |
| | 0 | 220 | | $"HashAlgorithm:{sslStream.HashAlgorithm}, HashStrength:{sslStream.HashStrength}, " + |
| | 0 | 221 | | $"KeyExchangeAlgorithm:{sslStream.KeyExchangeAlgorithm}, KeyExchangeStrength:{sslStream.KeyExchangeS |
| | 0 | 222 | | $"LocalCertificate:{sslStream.LocalCertificate}, RemoteCertificate:{sslStream.RemoteCertificate}"); |
| | | 223 | | #pragma warning restore SYSLIB0058 // Use NegotiatedCipherSuite. |
| | 0 | 224 | | } |
| | | 225 | | else |
| | 0 | 226 | | { |
| | 0 | 227 | | Trace($"{this}. Id:{Id}"); |
| | 0 | 228 | | } |
| | 0 | 229 | | } |
| | | 230 | | |
| | 0 | 231 | | public long GetLifetimeTicks(long nowTicks) => nowTicks - _creationTickCount; |
| | | 232 | | |
| | | 233 | | /// <summary>The amount of time that has elapsed since the connection was established.</summary> |
| | 0 | 234 | | internal TimeSpan Age => TimeSpan.FromMilliseconds(GetLifetimeTicks(Environment.TickCount64)); |
| | | 235 | | |
| | 0 | 236 | | public long GetIdleTicks(long nowTicks) => _idleSinceTickCount is long idleSinceTickCount ? nowTicks - idleSince |
| | | 237 | | |
| | | 238 | | /// <summary> |
| | | 239 | | /// Called when a connection is returned to the pool to run the eviction evaluation that may have been skipped |
| | | 240 | | /// for it during a background pass. HTTP/1.1 connections that were in use at the time weren't visible in the |
| | | 241 | | /// available list (they were checked out as pending), so the pass couldn't evaluate them. Comparing the |
| | | 242 | | /// connection's last evaluated generation against the pool's current one detects that case and evaluates now. |
| | | 243 | | /// </summary> |
| | | 244 | | public void RunEvictionEvaluationIfNeeded() |
| | 0 | 245 | | { |
| | 0 | 246 | | if (_pool.EvictionGeneration != _lastEvictionGeneration) |
| | 0 | 247 | | { |
| | 0 | 248 | | _ = EvaluateForEvictionAsync(); |
| | 0 | 249 | | } |
| | 0 | 250 | | } |
| | | 251 | | |
| | | 252 | | /// <summary> |
| | | 253 | | /// Runs the <see cref="SocketsHttpHandler.ShouldEvictConnection"/> callback for this connection |
| | | 254 | | /// and marks the connection for eviction if the callback requests it. The callback runs at most |
| | | 255 | | /// once at a time for this connection. |
| | | 256 | | /// </summary> |
| | | 257 | | public async Task EvaluateForEvictionAsync() |
| | 0 | 258 | | { |
| | 0 | 259 | | Debug.Assert(_pool.Settings._shouldEvictConnection is not null); |
| | 0 | 260 | | Debug.Assert(_connectionDisposalCts is not null); |
| | 0 | 261 | | Debug.Assert(_evictionContext is not null); |
| | | 262 | | |
| | | 263 | | // There's a benign race condition here where we might run the callback more than once for a given generatio |
| | 0 | 264 | | if (Interlocked.Exchange(ref _evictionCallbackInProgress, true) || |
| | 0 | 265 | | MarkedForEviction || |
| | 0 | 266 | | _connectionDisposalCts.IsCancellationRequested) |
| | 0 | 267 | | { |
| | 0 | 268 | | return; |
| | | 269 | | } |
| | | 270 | | |
| | | 271 | | try |
| | 0 | 272 | | { |
| | 0 | 273 | | if (await _pool.Settings._shouldEvictConnection(_evictionContext, _connectionDisposalCts.Token).Configur |
| | 0 | 274 | | { |
| | 0 | 275 | | _markedForEviction = true; |
| | | 276 | | |
| | 0 | 277 | | if (NetEventSource.Log.IsEnabled()) Trace("Marking connection for eviction per ShouldEvictConnection |
| | 0 | 278 | | } |
| | 0 | 279 | | } |
| | 0 | 280 | | catch (Exception e) |
| | 0 | 281 | | { |
| | | 282 | | // Don't let a misbehaving user callback take down pool maintenance. |
| | 0 | 283 | | if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(SocketsHttpHandler.ShouldEvictConnection)} threw an |
| | 0 | 284 | | } |
| | | 285 | | finally |
| | 0 | 286 | | { |
| | 0 | 287 | | _lastEvictionGeneration = _pool.EvictionGeneration; |
| | 0 | 288 | | _evictionCallbackInProgress = false; |
| | 0 | 289 | | } |
| | 0 | 290 | | } |
| | | 291 | | |
| | | 292 | | /// <summary>Check whether a connection is still usable, or should be scavenged.</summary> |
| | | 293 | | /// <returns>True if connection can be used.</returns> |
| | 0 | 294 | | public virtual bool CheckUsabilityOnScavenge() => true; |
| | | 295 | | |
| | 0 | 296 | | internal static bool IsDigit(byte c) => (uint)(c - '0') <= '9' - '0'; |
| | | 297 | | |
| | | 298 | | internal static int ParseStatusCode(ReadOnlySpan<byte> value) |
| | 0 | 299 | | { |
| | | 300 | | byte status1, status2, status3; |
| | 0 | 301 | | if (value.Length != 3 || |
| | 0 | 302 | | !IsDigit(status1 = value[0]) || |
| | 0 | 303 | | !IsDigit(status2 = value[1]) || |
| | 0 | 304 | | !IsDigit(status3 = value[2])) |
| | 0 | 305 | | { |
| | 0 | 306 | | throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_ |
| | | 307 | | } |
| | | 308 | | |
| | 0 | 309 | | return 100 * (status1 - '0') + 10 * (status2 - '0') + (status3 - '0'); |
| | 0 | 310 | | } |
| | | 311 | | |
| | | 312 | | /// <summary>Awaits a task, logging any resulting exceptions (which are otherwise ignored).</summary> |
| | | 313 | | internal void LogExceptions(Task task) |
| | 0 | 314 | | { |
| | 0 | 315 | | if (task.IsCompleted) |
| | 0 | 316 | | { |
| | 0 | 317 | | if (task.IsFaulted) |
| | 0 | 318 | | { |
| | 0 | 319 | | LogFaulted(this, task); |
| | 0 | 320 | | } |
| | 0 | 321 | | } |
| | | 322 | | else |
| | 0 | 323 | | { |
| | 0 | 324 | | task.ContinueWith(static (t, state) => LogFaulted((HttpConnectionBase)state!, t), this, |
| | 0 | 325 | | CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.OnlyO |
| | 0 | 326 | | } |
| | | 327 | | |
| | | 328 | | static void LogFaulted(HttpConnectionBase connection, Task task) |
| | 0 | 329 | | { |
| | 0 | 330 | | Debug.Assert(task.IsFaulted); |
| | 0 | 331 | | Exception? e = task.Exception!.InnerException; // Access Exception even if not tracing, to avoid TaskSch |
| | 0 | 332 | | if (NetEventSource.Log.IsEnabled()) connection.Trace($"Exception from asynchronous processing: {e}"); |
| | 0 | 333 | | } |
| | 0 | 334 | | } |
| | | 335 | | |
| | | 336 | | public abstract void Dispose(); |
| | | 337 | | |
| | | 338 | | /// <summary> |
| | | 339 | | /// Called by <see cref="HttpConnectionPool.CleanCacheAndDisposeIfUnused"/> while holding the lock. |
| | | 340 | | /// </summary> |
| | | 341 | | public bool IsUsable(long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout) |
| | 0 | 342 | | { |
| | | 343 | | // The connection may have been marked for eviction by the ShouldEvictConnection callback. |
| | 0 | 344 | | if (MarkedForEviction) |
| | 0 | 345 | | { |
| | 0 | 346 | | if (NetEventSource.Log.IsEnabled()) Trace("Scavenging connection. Connection was evicted."); |
| | 0 | 347 | | return false; |
| | | 348 | | } |
| | | 349 | | |
| | | 350 | | // Validate that the connection hasn't been idle in the pool for longer than is allowed. |
| | 0 | 351 | | if (pooledConnectionIdleTimeout != Timeout.InfiniteTimeSpan) |
| | 0 | 352 | | { |
| | 0 | 353 | | long idleTicks = GetIdleTicks(nowTicks); |
| | 0 | 354 | | if (idleTicks > pooledConnectionIdleTimeout.TotalMilliseconds) |
| | 0 | 355 | | { |
| | 0 | 356 | | if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Idle {TimeSpan.FromMilliseconds(i |
| | 0 | 357 | | return false; |
| | | 358 | | } |
| | 0 | 359 | | } |
| | | 360 | | |
| | | 361 | | // Validate that the connection lifetime has not been exceeded. |
| | 0 | 362 | | if (pooledConnectionLifetime != Timeout.InfiniteTimeSpan) |
| | 0 | 363 | | { |
| | 0 | 364 | | long lifetimeTicks = GetLifetimeTicks(nowTicks); |
| | 0 | 365 | | if (lifetimeTicks > pooledConnectionLifetime.TotalMilliseconds) |
| | 0 | 366 | | { |
| | 0 | 367 | | if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Lifetime {TimeSpan.FromMillisecon |
| | 0 | 368 | | return false; |
| | | 369 | | } |
| | 0 | 370 | | } |
| | | 371 | | |
| | 0 | 372 | | if (!CheckUsabilityOnScavenge()) |
| | 0 | 373 | | { |
| | 0 | 374 | | if (NetEventSource.Log.IsEnabled()) Trace($"Scavenging connection. Keep-Alive timeout exceeded, unexpect |
| | 0 | 375 | | return false; |
| | | 376 | | } |
| | | 377 | | |
| | 0 | 378 | | return true; |
| | 0 | 379 | | } |
| | | 380 | | } |
| | | 381 | | } |
| | | 382 | | |