Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch from rust-websocket to ws (fixes #14517) #16012
Conversation
highfive
commented
Mar 17, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Mar 17, 2017
|
@bors-servo try |
|
|
|
|
Seems like this is fixed in mio 0.6.5, but I'll check the other job results before retrying. |
|
I'm also really confused as to why this didn't fail in the past. |
|
|
|
@bors-servo try |
(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 -->
|
|
staabm
commented
Mar 20, 2017
|
nit: this PR changes from |
|
servo-websocket is just a fork that we made last week. |
|
@bors-servo try |
|
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.
This comment has been minimized.
| 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.
This comment has been minimized.
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.
This comment has been minimized.
| }; | ||
|
|
||
| let initiated_close = Arc::new(AtomicBool::new(false)); |
This comment has been minimized.
This comment has been minimized.
|
This is still blocked on housleyjk/ws-rs#120. |
|
|
|
I'm going to switch to tungstenite instead. |
This is heavily based on previous work done in servo#16012. Fixes servo#14517
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
This is heavily based on previous work done in servo#16012. Fixes servo#14517
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 -->
nox commentedMar 17, 2017
•
edited by larsbergstrom
This change is