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

Porting System.Net.Security#3113

Merged
CIPop merged 1 commit into
dotnet:masterfrom
CIPop:SNSecurityPR
Sep 16, 2015
Merged

Porting System.Net.Security#3113
CIPop merged 1 commit into
dotnet:masterfrom
CIPop:SNSecurityPR

Conversation

@CIPop
Copy link
Copy Markdown

@CIPop CIPop commented Sep 7, 2015

Missing issues for TODO comments. Will create the tracking issue and update the code, author (dotnetbot) and reference the tracking issue.

@davidsh @bartonjs @pgavlin @stephentoub @SidharthNabar PTAL.

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.

Why is the StreamAsyncHelper class buried in this dll? Why not put into src/Common somewhere? Then it could be reused by others.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Actually this was in Common\IO\StreamAsyncHelper and got removed by @Maxwe11 in 2732ffa just before I've finished this work.

Do you think I should move this back?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Moved to common.

@davidsh
Copy link
Copy Markdown
Contributor

davidsh commented Sep 9, 2015

LGTM

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.

Have these files been formatted?

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.

To expand a bit, I think that this line should be

if (!_stream.CanRead)
{
    throw __Error.GetReadNotSupported();
}

There are a number of other instances as well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good catch: this file got deleted during work I did for this PR. This is just bringing it back to the same location.

It appears that the file never got formatted for some reason. I'll run the tools again.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Not handled by CodeFormatter. Will manually change.
Tracking with dotnet/codeformatter#177.

@pgavlin
Copy link
Copy Markdown
Contributor

pgavlin commented Sep 10, 2015

LGTM aside from some code style issues.

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.

Is this comment still relevant?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The comment is from the original code. I'd keep it for now since it uncovers an issue in marshaling the struct from a native buffer: There is an assumption made that padding won't be added on any any architecture.
Changed the comment to reflect this and linked to #3114.

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.

10 participants