-
Notifications
You must be signed in to change notification settings - Fork 527
Conversation
certificateRequired = true; | ||
} | ||
|
||
using (var cancellationTokeSource = new CancellationTokenSource(_options.HandshakeTimeout)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer using IConnectionTimeout
since it's added only added in HttpConnection.ProcessRequestAsync
// Set the list of protocols from listen options | ||
httpsOptions.HttpProtocols = listenOptions.Protocols; | ||
listenOptions.ConnectionAdapters.Add(new HttpsConnectionAdapter(httpsOptions, loggerFactory)); | ||
httpsOptions.MaxInputBufferSize = listenOptions.KestrelServerOptions?.Limits.MaxRequestBufferSize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't great but it was the only way I could think of flowing the limits
6cc9b8d
to
0c2fdaa
Compare
@dotnet-bot test OSX 10.12 Release Build |
0c2fdaa
to
81edae2
Compare
|
||
namespace Microsoft.AspNetCore.Server.Kestrel.Https.Internal | ||
{ | ||
public class HttpsConnectionMiddleware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @davidfowl can I use this middleware to get tls support for the connection abstraction based mqtt handler I created?
(does this work with tcp or is http(s) required)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the idea is to have a TlsMiddleware that's separate from Kestrel that can be placed in front of any ConnectionHandler
. This is the first go to do that within Kestrel itself to see what issues exist.
Porting the HttpsConnectionAdapter to HttpConnectionMiddleware. There are a few things that are interesting: