Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

StreamSocketOutput.WriteAsync is Sync (SSL) #569

@benaadams

Description

@benaadams

This is used for wrapped streams such as Ssl. There is currently an issue with it being async; so it is currently implemented as sync.

public Task WriteAsync(ArraySegment<byte> buffer, bool immediate, bool chunk, CancellationToken cancellationToken)
{
    // TODO: Use _outputStream.WriteAsync
    Write(buffer, immediate, chunk);
    return TaskUtilities.CompletedTask;
}

Tests do catch the issue current; e.g. switching to async causes the following failures:

Microsoft.AspNet.Server.KestrelTests.HttpsConnectionFilterTests.CanReadAndWriteWithHttpsConnectionFilter [FAIL]
Microsoft.AspNet.Server.KestrelTests.HttpsConnectionFilterTests.HttpsSchemePassedToRequestFeature [FAIL]
Microsoft.AspNet.Server.KestrelTests.HttpsConnectionFilterTests.AllowCertificateContinuesWhenNoCertificate [FAIL]

Blockers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions