Skip to content

Clean up websocket closing code - #9358

Merged
bors-servo merged 4 commits into
servo:masterfrom
jsanders:refactor-websocket-closing
Jan 19, 2016
Merged

bors-servo merged 4 commits into
servo:masterfrom
jsanders:refactor-websocket-closing

Conversation

@jsanders

Copy link
Copy Markdown
Contributor

Fixes #7860.

This also changes quite a bit about how close codes are implemented, I believe bringing them closer in line with the spec. Instead of saving off the close code sent by the client, it uses the code from the server's closing handshake. It also handles NO_STATUS in what I believe is the correct manner. Making this work required a change to the test harness to make the /echo websocket handler echo the code sent by the client and handle NO_STATUS properly, rather than always replying with NORMAL.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 18, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #9368) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Jan 18, 2016
@jdm

jdm commented Jan 18, 2016

Copy link
Copy Markdown
Member

This is so much more readable! 💃 These changes look good to me, but I'll want to wait until upstream agrees with the server change.

@jdm jdm added S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 18, 2016
@jdm jdm self-assigned this Jan 18, 2016
@jsanders

Copy link
Copy Markdown
Contributor Author

@jdm: Will do!

@jsanders

Copy link
Copy Markdown
Contributor Author

@jdm: I just submitted web-platform-tests/wpt#2498 with this change.

@jsanders
jsanders force-pushed the refactor-websocket-closing branch from 6b5dbd0 to 482d23b Compare January 19, 2016 01:34
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 19, 2016
@jdm jdm added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. labels Jan 19, 2016
@jdm

jdm commented Jan 19, 2016

Copy link
Copy Markdown
Member

@bors-servo: r+
Thanks!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 482d23b has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 482d23b with merge 6663f28...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 19, 2016
bors-servo pushed a commit that referenced this pull request Jan 19, 2016
Clean up websocket closing code

Fixes #7860.

This also changes quite a bit about how close codes are implemented, I believe bringing them closer in line with the spec. Instead of saving off the close code sent by the client, it uses the code from the server's closing handshake. It also handles `NO_STATUS` in what I believe is the correct manner. Making this work required a change to the test harness to make the `/echo` websocket handler echo the code sent by the client and handle `NO_STATUS` properly, rather than always replying with `NORMAL`.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9358)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jan 19, 2016
@jdm

jdm commented Jan 19, 2016

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel...

@jsanders

Copy link
Copy Markdown
Contributor Author

@jdm: Should I go ahead and squash this now?

@jdm

jdm commented Jan 19, 2016

Copy link
Copy Markdown
Member

No, I think it's fine the way it is. The merging process is already on its way.

@jsanders

Copy link
Copy Markdown
Contributor Author

👍 Thanks!

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 482d23b into servo:master Jan 19, 2016
@jsanders jsanders mentioned this pull request Jan 20, 2016
@SimonSapin SimonSapin removed the S-tests-failed The changes caused existing tests to fail. label Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up websocket closing code

5 participants