Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Ross <chrross@microsoft.com>2022-03-17 19:50:02 +0300
committerGitHub <noreply@github.com>2022-03-17 19:50:02 +0300
commit229aa1ecfae353e66f1e5cc48ca9ba9e98078963 (patch)
tree97b68a49068f18bbf247f0158b9bac21577fa50d
parentdafd01aa6c5d8bcf8d868154e2cf986739a5d610 (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.cs2
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; }