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

import WebSockets code from CoreFX - #105

Merged
analogrelay merged 2 commits into
devfrom
anurse/import-corefx-code
Aug 3, 2016
Merged

analogrelay merged 2 commits into
devfrom
anurse/import-corefx-code

Conversation

@analogrelay

@analogrelay analogrelay commented Aug 1, 2016 •

Copy link
Copy Markdown
Contributor

Imports a copy of ManagedWebSocket (and friends) from dotnet/corefx (including the proposed change in dotnet/corefx#10510) and replaces all our protocol implementation with it. As a result, we are now more conformant to the spec (yay!) as #99 no longer repros.

🍝 Copy-pasta isn't my favorite, but until we can lock in a Public API this gets us on the same code base.

/cc @davidfowl @Tratcher

Fixes #97 (also a "for-free" fix from using this new code)
Fixes #99
Fixes #27

@analogrelay

Copy link
Copy Markdown
Contributor Author

One note: I had to remove UseZeroMask from our client in order to support this. Since our client is basically going away anyway, this didn't seem like a terrible thing :)

@Tratcher

Tratcher commented Aug 1, 2016

Copy link
Copy Markdown
Member

FYI: @Eilon didn't like it anyways. #27

}
$CoreFxRepoRoot = Convert-Path $CoreFxRepoRoot

$DestinationRoot = "$RepoRoot\src\Microsoft.AspNetCore.WebSockets.Protocol\ext"

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.

lets move directly to Server and remove Client and Protocol

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.

Actually, if we drop Protocol and Client we could rename the Server package to just Microsoft.AspNetCore.WebSockets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure if we should pile all that in to this change, but I can do it :).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We're not going to be able to take that until we start mirroring new CoreFX builds on our feeds. So I recommend doing it in a separate change.

@analogrelay
analogrelay force-pushed the anurse/import-corefx-code branch from 6f28cb7 to 99bbe4a Compare August 1, 2016 23:22
@analogrelay

Copy link
Copy Markdown
Contributor Author

🆙 📅 - Fixed flaky large-buffer related test (turns out the test was just being a little too strict) and restored WebListener tests.

@analogrelay analogrelay changed the title [WIP] import WebSockets code from CoreFX import WebSockets code from CoreFX Aug 2, 2016
@analogrelay

Copy link
Copy Markdown
Contributor Author

Synced some PR feedback from the parallel dotnet/corefx PR. Ready to merge upon green builds and sign-off from @Tratcher

"CS1591"
"CS1591",
"CS1572",
"CS1573"

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.

are there bugs filed for these?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, but we could file them I guess. They are here because they are caused by the corefx code, so as long as that code is in our repo I don't know that we'll fix them (they're related to XML Docs, and these are internal APIs... it's kinda annoying that they are triggering at all...

I could add an issue to track removing this when we remove the corefx code and use a public API.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

We could send them a PR :-)

@Tratcher

Tratcher commented Aug 2, 2016

Copy link
Copy Markdown
Member

:shipit:

@analogrelay
analogrelay force-pushed the anurse/import-corefx-code branch from 7fb126f to 4f384c7 Compare August 2, 2016 22:27
@analogrelay
analogrelay merged commit 45f0fe1 into dev Aug 3, 2016
@analogrelay
analogrelay deleted the anurse/import-corefx-code branch August 3, 2016 18:07
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.

3 participants