This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
HttpPlatformHandler/Kestrel: Losing the response when creating an SslStream #18
Closed
Description
Following: #16
I'm using my custom mail server code (reason: System.Net.Mail
isn't done yet for .NET Core) with my Contact Us form of this app.
If I run this controller/view, it runs and returns the view up to ...
using (var client = new TcpClient(server, port)) { ... }
... but if I take that one more step to the SslStream
, it chokes and actually throws a 404 ... and this is all inside a try-catch
that should show an exception in the view. Nope ... 404 as soon as it hits that SslStream
line ... bizarre.
using (var client = new TcpClient(server, port))
{
using (var stream = new SslStream(client.GetStream(), false)) { ... }
}
Metadata
Metadata
Assignees
Labels
No labels