Skip to content

Commit eb694ab

Browse files
authored
Support falling back to ConnectionId when RawConnectionId is 0 on HTTP.sys (#40760)
1 parent d60e995 commit eb694ab

File tree

1 file changed

+1
-1
lines changed
  • src/Servers/HttpSys/src/RequestProcessing

1 file changed

+1
-1
lines changed

src/Servers/HttpSys/src/RequestProcessing/Request.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ internal Request(RequestContext requestContext)
120120
internal ulong RawConnectionId { get; }
121121

122122
// No ulongs in public APIs...
123-
public long ConnectionId => (long)RawConnectionId;
123+
public long ConnectionId => RawConnectionId != 0 ? (long)RawConnectionId : (long)UConnectionId;
124124

125125
internal ulong RequestId { get; }
126126

0 commit comments

Comments
 (0)