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:
authoravparuch <55294511+avparuch@users.noreply.github.com>2022-03-17 18:50:56 +0300
committerGitHub <noreply@github.com>2022-03-17 18:50:56 +0300
commitfc7c6e7cdab83b501a0177e701c9b56a0f64aebd (patch)
tree1d32832f26f2a023e1da9e44ab2e99894e0e78ce
parentecc4d17263bad39769bb4b71c9cc2a0d2281e931 (diff)
Support falling back to ConnectionId when RawConnectionId is 0 on HTTP.sys (#40733)haok/artifacts
-rw-r--r--src/Servers/HttpSys/src/RequestProcessing/Request.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Servers/HttpSys/src/RequestProcessing/Request.cs b/src/Servers/HttpSys/src/RequestProcessing/Request.cs
index 8fa5579b6b..3156683abf 100644
--- a/src/Servers/HttpSys/src/RequestProcessing/Request.cs
+++ b/src/Servers/HttpSys/src/RequestProcessing/Request.cs
@@ -115,8 +115,8 @@ internal sealed partial class Request
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; }
private SslStatus SslStatus { get; }