Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Plumb cancellation through SslStream.AuthenticateAsXxAsync - #37259

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:sslcancellation
Apr 29, 2019
Merged

Plumb cancellation through SslStream.AuthenticateAsXxAsync#37259
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:sslcancellation

Conversation

@stephentoub

Copy link
Copy Markdown
Member

We accept a CancellationToken into several of the overloads, but it's then dropped and not actually used. This fixes that to ensure it's passed through to the underlying Read/WriteAsync operations.

Fixes https://github.com/dotnet/corefx/issues/25206
cc: @davidsh, @geoffkizer, @wfurt, @Drawaes, @benaadams

@davidsh davidsh added this to the 3.0 milestone Apr 29, 2019

@davidsh davidsh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wfurt wfurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
NETFX_x86_Release failure seems related to this change.

We accept a CancellationToken into several of the overloads, but it's then dropped and not actually used.  This fixes that to ensure it's passed through to the underlying Read/WriteAsync operations.
@stephentoub

Copy link
Copy Markdown
Member Author

/azp run corefx-outerloop-windows

@stephentoub

Copy link
Copy Markdown
Member Author

/azp run corefx-outerloop-linux

@azure-pipelines

Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@stephentoub

Copy link
Copy Markdown
Member Author

/azp run corefx-outerloop-osx

@azure-pipelines

Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines

Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@stephentoub

stephentoub commented Apr 29, 2019

Copy link
Copy Markdown
Member Author

NETFX_x86_Release failure seems related to this change.

Yeah, I needed to skip a test on netfx; it was relying on a fix in this PR. Thanks.

@stephentoub

Copy link
Copy Markdown
Member Author

The outerloop Linux failures are unrelated:

  • Process name failures due to Disable failing Process name test #37283
  • System.Linq.Parallel tests timing out (known issue)
  • Fedora infrastructure ("Unable to pull image mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-28-helix-45b1fa2-20190402012449")

@stephentoub
stephentoub merged commit ff1db9b into dotnet:master Apr 29, 2019
@stephentoub
stephentoub deleted the sslcancellation branch April 29, 2019 22:24
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…refx#37259)

We accept a CancellationToken into several of the overloads, but it's then dropped and not actually used.  This fixes that to ensure it's passed through to the underlying Read/WriteAsync operations.

Commit migrated from dotnet/corefx@ff1db9b
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support cancellation on SslStream.AuthenticateAs*Async methods

3 participants