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

Update Hyper and OpenSSL #15868

Merged
merged 4 commits into from Mar 31, 2017
Merged

Update Hyper and OpenSSL #15868

merged 4 commits into from Mar 31, 2017

Conversation

nox
Copy link
Contributor

@nox nox commented Mar 8, 2017

This change is Reviewable

@highfive
Copy link

highfive commented Mar 8, 2017

Heads up! This PR modifies the following files:

  • @asajeffrey: components/webdriver_server/lib.rs, components/webdriver_server/Cargo.toml
  • @jgraham: components/webdriver_server/lib.rs, components/webdriver_server/Cargo.toml
  • @fitzgen: components/devtools_traits/Cargo.toml, components/devtools_traits/Cargo.toml, components/devtools/Cargo.toml, components/script/dom/document.rs, components/script/webdriver_handlers.rs, components/script/Cargo.toml, components/script/dom/websocket.rs, components/script_traits/webdriver_msg.rs, components/script_traits/webdriver_msg.rs, components/script_traits/Cargo.toml, components/script_traits/Cargo.toml
  • @KiChjang: components/net/lib.rs, components/script/dom/document.rs, components/net/http_loader.rs, components/net/connector.rs, components/net_traits/lib.rs, components/net_traits/lib.rs, components/script/webdriver_handlers.rs, components/script/Cargo.toml, components/net/cookie_storage.rs, components/net_traits/Cargo.toml, components/net_traits/Cargo.toml, components/net/resource_thread.rs, components/net/Cargo.toml, components/net/cookie.rs, components/net/subresource_integrity.rs, components/script/dom/websocket.rs, components/script_traits/webdriver_msg.rs, components/script_traits/webdriver_msg.rs, components/script_traits/Cargo.toml, components/script_traits/Cargo.toml

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 8, 2017
@nox
Copy link
Contributor Author

nox commented Mar 8, 2017

@bors-servo r+ p=17

@bors-servo
Copy link
Contributor

📌 Commit 497a7b2 has been approved by nox

@highfive highfive assigned nox and unassigned metajack Mar 8, 2017
@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 Mar 8, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 497a7b2 with merge 788109e...

bors-servo pushed a commit that referenced this pull request Mar 8, 2017
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
Copy link
Contributor

💔 Test failed - windows-msvc-dev

@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 Mar 8, 2017
@nox
Copy link
Contributor Author

nox commented Mar 8, 2017

Build failed, waiting for other jobs to finish...
error: failed to run custom build command for `openssl-sys v0.9.7`
process didn't exit successfully: `c:\buildbot\slave\windows-msvc-dev\build\target\debug\build\openssl-sys-ab551cd13dbf3163\build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-search=native=C:\Users\Administrator\.servo\msvc-dependencies\openssl\1.0.1t-vs2015\lib64
cargo:include=C:\Users\Administrator\.servo\msvc-dependencies\openssl\1.0.1t-vs2015\include
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("debug")
running: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe" "/nologo" "/MD" "/Z7" "/I" "C:\\Users\\Administrator\\.servo\\msvc-dependencies\\openssl\\1.0.1t-vs2015\\include" "/E" "c:\\buildbot\\slave\\windows-msvc-dev\\build\\target\\debug\\build\\openssl-sys-b989cad2fc000929\\out\\expando.c"
cargo:warning=expando.c
ExitStatus(ExitStatus(0))
cargo:rustc-cfg=osslconf="OPENSSL_NO_KRB5"
cargo:rustc-cfg=osslconf="OPENSSL_NO_RFC3779"
cargo:conf=OPENSSL_NO_KRB5,OPENSSL_NO_RFC3779
cargo:rustc-cfg=ossl101
cargo:version=101

--- stderr
thread 'main' panicked at 'OpenSSL libdir at `C:\Users\Administrator\.servo\msvc-dependencies\openssl\1.0.1t-vs2015\lib64` does not contain the required files to either statically or dynamically link OpenSSL', C:\Users\Administrator\.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-sys-0.9.7\build.rs:355
stack backtrace:
   0:      0x7f6083964c7 - std::panicking::default_hook::{{closure}}
                        at C:\projects\rust\src\libstd\panicking.rs:356
   1:      0x7f6083959f4 - std::panicking::default_hook
                        at C:\projects\rust\src\libstd\panicking.rs:367
   2:      0x7f608399311 - std::panicking::rust_panic_with_hook
                        at C:\projects\rust\src\libstd\panicking.rs:545
   3:      0x7f6083991c8 - std::panicking::begin_panic<collections::string::String>
                        at C:\projects\rust\src\libstd\panicking.rs:507
   4:      0x7f6083990e4 - std::panicking::begin_panic_fmt
                        at C:\projects\rust\src\libstd\panicking.rs:491
   5:      0x7f608316f68 - build_script_build::determine_mode
                        at C:\Users\Administrator\.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-sys-0.9.7\build.rs:355
   6:      0x7f60831468f - build_script_build::main
                        at C:\Users\Administrator\.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-sys-0.9.7\build.rs:76
   7:      0x7f60839bbc1 - panic_unwind::__rust_maybe_catch_panic
                        at C:\projects\rust\src\libpanic_unwind\lib.rs:98
   8:      0x7f60839991a - std::rt::lang_start
                        at C:\projects\rust\src\libstd\rt.rs:51
   9:      0x7f60831725b - main
  10:      0x7f6083a05d8 - __scrt_common_main_seh
                        at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253
  11:      0x7fd5dab1841 - BaseThreadInitThunk

Cc @sfackler @retep998 @avadacatavra

@sfackler
Copy link

sfackler commented Mar 8, 2017

What is in C:\Users\Administrator\.servo\msvc-dependencies\openssl\1.0.1t-vs2015\lib64?

@nox
Copy link
Contributor Author

nox commented Mar 8, 2017

Absolutely no idea.

Cc @edunham @larsbergstrom.

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove pls

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>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Indent

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Still necessary?

}

#[derive(Debug)]
struct LoadError {
Copy link
Contributor

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?

@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 8, 2017

@bors-servo r-

@nox
Copy link
Contributor Author

nox commented Mar 8, 2017

Ugh, I'll never use Reviewable again.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Mar 8, 2017
@nox
Copy link
Contributor Author

nox commented Mar 8, 2017

@Ms2ger Addressed your remarks.

@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 8, 2017

Thanks, fine for me.

@nox nox removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 8, 2017
@Manishearth
Copy link
Member

@bors-servo treeclosed-

@bors-servo
Copy link
Contributor

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

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Mar 31, 2017
@nox
Copy link
Contributor Author

nox commented Mar 31, 2017

r? @jdm

@highfive highfive assigned jdm and unassigned nox Mar 31, 2017
@nox
Copy link
Contributor Author

nox commented Mar 31, 2017

@bors-servo try

@bors-servo
Copy link
Contributor

⌛ Trying commit e527c9a with merge adee7e5...

bors-servo pushed a commit that referenced this pull request Mar 31, 2017
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 -->
@jdm
Copy link
Member

jdm commented Mar 31, 2017

@bors-servo: r+

@bors-servo
Copy link
Contributor

📌 Commit e527c9a has been approved by jdm

@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. S-needs-rebase There are merge conflict errors. labels Mar 31, 2017
@nox
Copy link
Contributor Author

nox commented Mar 31, 2017

@bors-servo try- retry

@bors-servo
Copy link
Contributor

⌛ Testing commit e527c9a with merge 5c3e549...

bors-servo pushed a commit that referenced this pull request Mar 31, 2017
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
Copy link
Contributor

💔 Test failed - linux-rel-wpt

@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 Mar 31, 2017
@nox
Copy link
Contributor Author

nox commented Mar 31, 2017

@bors-servo retry #14323

@bors-servo
Copy link
Contributor

⌛ Testing commit e527c9a with merge 82b0d5a...

bors-servo pushed a commit that referenced this pull request Mar 31, 2017
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 -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Mar 31, 2017
@bors-servo
Copy link
Contributor

☀️ 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
Approved by: jdm
Pushing 82b0d5a to master...

@bors-servo bors-servo merged commit e527c9a into master Mar 31, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 31, 2017
@SimonSapin SimonSapin deleted the hyper branch April 26, 2017 03:51
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.

None yet

9 participants