Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from rust-websocket to ws (fixes #14517) #16012

Closed
wants to merge 2 commits into from
Closed

Switch from rust-websocket to ws (fixes #14517) #16012

wants to merge 2 commits into from

Conversation

@nox
Copy link
Member

nox commented Mar 17, 2017

This change is Reviewable

@highfive
Copy link

highfive commented Mar 17, 2017

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/lib.rs, components/script/Cargo.toml, components/script/dom/websocket.rs
  • @KiChjang: components/net/Cargo.toml, components/script/lib.rs, components/net/lib.rs, components/net/http_loader.rs, components/script/Cargo.toml, components/net/websocket_loader.rs, components/script/dom/websocket.rs, components/net_traits/Cargo.toml, components/net_traits/Cargo.toml, components/net_traits/lib.rs, components/net_traits/lib.rs
@highfive
Copy link

highfive commented Mar 17, 2017

warning Warning warning

  • These commits modify net and script code, but no tests are modified. Please consider adding a test!
@nox
Copy link
Member Author

nox commented Mar 17, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 17, 2017

Trying commit fcd195d with merge 0606e1f...

bors-servo added a commit that referenced this pull request Mar 17, 2017
(Do not merge) Switch from rust-websocket to ws (fixes #14517)
@bors-servo
Copy link
Contributor

bors-servo commented Mar 17, 2017

💔 Test failed - android

@nox
Copy link
Member Author

nox commented Mar 17, 2017

error[E0432]: unresolved import `libc::EPOLLRDHUP`
 --> /home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.6.4/src/sys/unix/epoll.rs:8:32
  |
8 | use libc::{EPOLLERR, EPOLLHUP, EPOLLRDHUP, EPOLLONESHOT};
  |                                ^^^^^^^^^^ no `EPOLLRDHUP` in the root. Did you mean to use `EPOLLHUP`?

error[E0432]: unresolved import `libc::EPOLLONESHOT`
 --> /home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.6.4/src/sys/unix/epoll.rs:8:44
  |
8 | use libc::{EPOLLERR, EPOLLHUP, EPOLLRDHUP, EPOLLONESHOT};
  |                                            ^^^^^^^^^^^^ no `EPOLLONESHOT` in the root
@nox
Copy link
Member Author

nox commented Mar 17, 2017

Seems like this is fixed in mio 0.6.5, but I'll check the other job results before retrying.

@nox
Copy link
Member Author

nox commented Mar 17, 2017

I'm also really confused as to why this didn't fail in the past.

@bors-servo
Copy link
Contributor

bors-servo commented Mar 17, 2017

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

@nox
Copy link
Member Author

nox commented Mar 17, 2017

@nox
Copy link
Member Author

nox commented Mar 19, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 19, 2017

Trying commit dc82ca5 with merge 34e99b4...

bors-servo added a commit that referenced this pull request Mar 19, 2017
(Do not merge) Switch from rust-websocket to ws (fixes #14517)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16012)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 19, 2017

💔 Test failed - linux-rel-wpt

@staabm
Copy link

staabm commented Mar 20, 2017

nit: this PR changes from servo-websocket to ws not rust-websocket as the PR-title mentions

@jdm
Copy link
Member

jdm commented Mar 20, 2017

servo-websocket is just a fork that we made last week.

@nox nox force-pushed the ws branch from 58a8d50 to 9c304c5 Mar 21, 2017
@nox nox changed the title (Do not merge) Switch from rust-websocket to ws (fixes #14517) Switch from rust-websocket to ws (fixes #14517) Mar 21, 2017
@nox
Copy link
Member Author

nox commented Mar 21, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 21, 2017

Trying commit 9c304c5 with merge 3b2cddb...

Josh Holmer and others added 2 commits Jan 30, 2017
Copy link
Member Author

nox left a comment

Addressed your comments.

let protocol_in_use = try!(res.protocol());
if let Some(protocol_name) = protocol_in_use {
let protocol_name = protocol_name.to_lowercase();
if self.protocols.is_empty() && !self.protocols.iter().any(|p| protocol_name == (*p).to_lowercase()) {

This comment has been minimized.

@nox

nox Mar 22, 2017

Author Member

Fixed.

Ok((headers, sender, receiver))
fn on_open(&mut self, shake: Handshake) -> WebSocketResult<()> {
let headers = WebSocketHeaders::new(shake.response.headers().clone());
set_cookies_from_headers(self.resource_url, &headers.as_hyper_headers(), self.cookie_jar);

This comment has been minimized.

@nox

nox Mar 22, 2017

Author Member

This was the reason the expectations for /websockets/cookies/007.html changed, thanks for noticing.

"".to_owned()
} else {
reason.to_string()
};

This comment has been minimized.

};

let initiated_close = Arc::new(AtomicBool::new(false));

This comment has been minimized.

@nox

nox Mar 22, 2017

Author Member

AFAICT, this is already handled on ws' side.

@nox
Copy link
Member Author

nox commented Mar 22, 2017

This is still blocked on housleyjk/ws-rs#120.

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2017

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

@nox
Copy link
Member Author

nox commented Mar 26, 2017

I'm going to switch to tungstenite instead.

@nox nox closed this Mar 26, 2017
@nox nox deleted the ws branch Mar 26, 2017
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 11, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 11, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 11, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 11, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 11, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 13, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 13, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 13, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 14, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 14, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 14, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 15, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 15, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Eijebong added a commit to Eijebong/servo that referenced this pull request Aug 15, 2018
This is heavily based on previous work done in servo#16012.

Fixes servo#14517
bors-servo added a commit that referenced this pull request Aug 15, 2018
Replace servo-websocket by ws

This is heavily based on previous work done in #16012.

Fixes #14517

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21386)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.