Convert TLS connection adapter to connection middleware#11109
Conversation
halter73
left a comment
There was a problem hiding this comment.
This is good except I'd remove the cross-cancellation
|
@aspnet/build thoughts? |
|
Can you open an issue on https://github.com/dotnet/core-eng/? Looks like an outage or error within Helix
|
cc695ae to
90a4b81
Compare
| _options = options; | ||
| _logger = loggerFactory?.CreateLogger<HttpsConnectionAdapter>() ?? (ILogger)NullLogger.Instance; | ||
| _logger = loggerFactory?.CreateLogger<HttpsConnectionMiddleware>(); | ||
| } |
| context.Features.Set<ITlsConnectionFeature>(feature); | ||
| context.Features.Set<ITlsHandshakeFeature>(feature); | ||
|
|
||
| // TODO: Handle the cases where this can be null |
There was a problem hiding this comment.
I'll tackle them across the code base in a separate PR.
There was a problem hiding this comment.
I'm aware there are TODO comments in Kestrel. That one was checked in five years ago when Kestrel was still a test server. I bet you could find a bunch more recent examples than that, but I don't really see the point. I'm glad you don't plan to just leave this there though.
| minimumSegmentSize: memoryPoolFeature.MemoryPool.GetMinimumSegmentSize() | ||
| ); | ||
|
|
||
| // TODO: eventually make SslDuplexStream : Stream, IDuplexPipe to avoid RawStream allocation and pipe allocations |
There was a problem hiding this comment.
This TODO on the other hand is fine. This seems like a fair bit of work.
|
/azp run AspNetCore-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
This comment was made automatically. If there is a problem contact aspnetcore-build@microsoft.com. I've triaged the above build. I've created/commented on the following issue(s) |
|
|
||
| private void StopProcessingNextRequest() | ||
| { | ||
| ProtocolSelectionState previousState; |
There was a problem hiding this comment.
Do we still need these changes?
jkotalik
left a comment
There was a problem hiding this comment.
I approve, but this is my PR 😃
|
I'm going to go ahead and merge this. I'm OOF friday so I'd like to be able to revert if something is failing due to this change. |
Handles part of #4623
Pretty much is a direct port of aspnet/KestrelHttpServer#2849 to 3.0. Honestly confused why we didn't merge it before, things overall looked good with it.
Follow up:
Drafting to write some follow-up questions to make sure design wise everything looks good.