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
Update Hyper and OpenSSL #15868
Update Hyper and OpenSSL #15868
Conversation
Heads up! This PR modifies the following files:
|
@bors-servo r+ p=17 |
📌 Commit 497a7b2 has been approved by |
⌛ Testing commit 497a7b2 with merge 788109e... |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
💔 Test failed - windows-msvc-dev |
|
What is in |
Absolutely no idea. |
tests/unit/net/fetch.rs
Outdated
@@ -18,10 +18,11 @@ use hyper::header::{Encoding, Location, Pragma, Quality, QualityItem, SetCookie, | |||
use hyper::header::{Headers, Host, HttpDate, Referer as HyperReferer}; | |||
use hyper::method::Method; | |||
use hyper::mime::{Mime, SubLevel, TopLevel}; | |||
use hyper::net::Openssl; | |||
//use hyper::net::Openssl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove pls
components/net/resource_thread.rs
Outdated
resource_group: &ResourceGroup) { | ||
if let Some(cookie) = cookie::Cookie::new_wrapped(cookie, &request, source) { | ||
fn set_cookie_for_url(&mut self, request: &ServoUrl, | ||
cookie: cookie_rs::Cookie<'static>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent
components/net/http_loader.rs
Outdated
@@ -126,42 +125,62 @@ struct NetworkHttpRequestFactory { | |||
|
|||
impl NetworkHttpRequestFactory { | |||
fn create(&self, url: ServoUrl, method: Method, headers: Headers) | |||
-> Result<HyperRequest<Fresh>, NetworkError> { | |||
-> Result<HyperRequest<Fresh>, LoadError> { | |||
let connection = HyperRequest::with_connector(method, | |||
url.clone().into_url().unwrap(), | |||
&*self.connector); | |||
|
|||
if let Err(HttpError::Ssl(ref error)) = connection { | |||
let error: &(Error + Send + 'static) = &**error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still necessary?
components/net/http_loader.rs
Outdated
} | ||
|
||
#[derive(Debug)] | ||
struct LoadError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this in 87979ef; any reason for it to return?
@bors-servo r- |
Ugh, I'll never use Reviewable again. |
@Ms2ger Addressed your remarks. |
Thanks, fine for me. |
@bors-servo treeclosed- |
☔ The latest upstream changes (presumably #15844) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @jdm |
@bors-servo try |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
@bors-servo: r+ |
📌 Commit e527c9a has been approved by |
@bors-servo try- retry |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
💔 Test failed - linux-rel-wpt |
@bors-servo retry #14323 |
Update Hyper and OpenSSL <!-- 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/15868) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev |
This change is