зеркало из https://github.com/dotnet/aspnetcore.git
Use the RawConnectionId for HttpSys (#37945)
This commit is contained in:
Родитель
e9c0b93edf
Коммит
83ea26b0ed
|
@ -45,7 +45,9 @@ namespace Microsoft.AspNetCore.Server.HttpSys
|
|||
_contentBoundaryType = BoundaryType.None;
|
||||
|
||||
RequestId = requestContext.RequestId;
|
||||
// For HTTP/2 Http.Sys assigns each request a unique connection id for use with API calls, but the RawConnectionId represents the real connection.
|
||||
UConnectionId = requestContext.ConnectionId;
|
||||
RawConnectionId = requestContext.RawConnectionId;
|
||||
SslStatus = requestContext.SslStatus;
|
||||
|
||||
KnownMethod = requestContext.VerbId;
|
||||
|
@ -115,8 +117,10 @@ namespace Microsoft.AspNetCore.Server.HttpSys
|
|||
|
||||
internal ulong UConnectionId { get; }
|
||||
|
||||
internal ulong RawConnectionId { get; }
|
||||
|
||||
// No ulongs in public APIs...
|
||||
public long ConnectionId => (long)UConnectionId;
|
||||
public long ConnectionId => (long)RawConnectionId;
|
||||
|
||||
internal ulong RequestId { get; }
|
||||
|
||||
|
|
|
@ -99,6 +99,8 @@ namespace Microsoft.AspNetCore.HttpSys.Internal
|
|||
|
||||
internal ulong ConnectionId => NativeRequest->ConnectionId;
|
||||
|
||||
internal ulong RawConnectionId => NativeRequest->RawConnectionId;
|
||||
|
||||
internal HttpApiTypes.HTTP_VERB VerbId => NativeRequest->Verb;
|
||||
|
||||
internal ulong UrlContext => NativeRequest->UrlContext;
|
||||
|
|
Загрузка…
Ссылка в новой задаче