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

SSLStream - Fix write renegotiation and make a single function for it - #24492

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
Drawaes:FixWriteRenegotiation
Oct 17, 2017
Merged

SSLStream - Fix write renegotiation and make a single function for it#24492
stephentoub merged 1 commit into
dotnet:masterfrom
Drawaes:FixWriteRenegotiation

Conversation

@Drawaes

@Drawaes Drawaes commented Oct 6, 2017

Copy link
Copy Markdown

I was taking a hard look at the code for triggering the callback after an async renegotiation for both read and write. The write side is currently missing the TaskCompletionSource call that was added, but seemed to drop out of my PR.

I have put this in and moved the duplicate code to a single function which is what I was prototyping on the read side to make that full async.

@Drawaes

Drawaes commented Oct 6, 2017

Copy link
Copy Markdown
Author

As an aside I am wracking my brain on how we can test this code flow better, but the only way with .net currently might just be some sort of unit tests that artificially get in there and force the situation.

Hoping someone can come up with ideas on this?

@Drawaes

Drawaes commented Oct 8, 2017

Copy link
Copy Markdown
Author

@dotnet-bot Test Outerloop Windows x64 Debug Build
@dotnet-bot Test Outerloop UWP CoreCLR x64 Debug Build
@dotnet-bot Test Outerloop Linux x64 Release Build

@stephentoub

Copy link
Copy Markdown
Member

cc: @geoffkizer

case LazyAsyncResult lazy:
lazy.InvokeCallback();
break;
case TaskCompletionSource<int> tsc:

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.

Nit: tcs?

@stephentoub

Copy link
Copy Markdown
Member

@dotnet-bot test this please

@stephentoub

Copy link
Copy Markdown
Member

@dotnet-bot test Outerloop Linux x64 Release Build please

@stephentoub
stephentoub merged commit 85cc2ff into dotnet:master Oct 17, 2017
@karelz karelz added this to the 2.1.0 milestone Oct 28, 2017
pjanotti pushed a commit to pjanotti/corefx that referenced this pull request Oct 31, 2017
@Drawaes
Drawaes deleted the FixWriteRenegotiation branch November 3, 2017 22:17
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
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.

7 participants