Skip to content
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
@guardrex

Description

@guardrex

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions