diff options
author | Chris Ross <chrross@microsoft.com> | 2022-03-17 19:50:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 19:50:02 +0300 |
commit | 229aa1ecfae353e66f1e5cc48ca9ba9e98078963 (patch) | |
tree | 97b68a49068f18bbf247f0158b9bac21577fa50d | |
parent | dafd01aa6c5d8bcf8d868154e2cf986739a5d610 (diff) |
Support falling back to ConnectionId when RawConnectionId is 0 on HTTP.systratcher/release/6.0/connectionid
-rw-r--r-- | src/Servers/HttpSys/src/RequestProcessing/Request.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Servers/HttpSys/src/RequestProcessing/Request.cs b/src/Servers/HttpSys/src/RequestProcessing/Request.cs index ffffc05067..880beebf56 100644 --- a/src/Servers/HttpSys/src/RequestProcessing/Request.cs +++ b/src/Servers/HttpSys/src/RequestProcessing/Request.cs @@ -120,7 +120,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys internal ulong RawConnectionId { get; } // No ulongs in public APIs... - public long ConnectionId => (long)RawConnectionId; + public long ConnectionId => RawConnectionId != 0 ? (long)RawConnectionId : (long)UConnectionId; internal ulong RequestId { get; } |