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
Member

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
@nox
Copy link
Member Author

nox commented Mar 8, 2017

@bors-servo r+ p=17

@bors-servo
Copy link
Contributor

bors-servo commented Mar 8, 2017

📌 Commit 497a7b2 has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Mar 8, 2017

Testing commit 497a7b2 with merge 788109e...

bors-servo added 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

bors-servo commented Mar 8, 2017

💔 Test failed - windows-msvc-dev

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

This comment has been minimized.

Copy link
@Ms2ger

Ms2ger Mar 8, 2017

Contributor

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>,

This comment has been minimized.

Copy link
@Ms2ger

Ms2ger Mar 8, 2017

Contributor

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;

This comment has been minimized.

Copy link
@Ms2ger

Ms2ger Mar 8, 2017

Contributor

Still necessary?

}

#[derive(Debug)]
struct LoadError {

This comment has been minimized.

Copy link
@Ms2ger

Ms2ger Mar 8, 2017

Contributor

I removed this in 87979ef; any reason for it to return?

@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 8, 2017

@nox
Copy link
Member Author

nox commented Mar 8, 2017

Ugh, I'll never use Reviewable again.

@nox nox force-pushed the hyper branch from 497a7b2 to feac84c Mar 8, 2017
@nox nox force-pushed the hyper branch from feac84c to 6fd06b3 Mar 8, 2017
@nox
Copy link
Member 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 label Mar 8, 2017
@Manishearth
Copy link
Member

Manishearth commented Mar 8, 2017

@bors-servo treeclosed-

@bors-servo
Copy link
Contributor

bors-servo commented Mar 9, 2017

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

@nox nox force-pushed the hyper branch from b3c033f to e527c9a Mar 31, 2017
@nox
Copy link
Member Author

nox commented Mar 31, 2017

r? @jdm

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

nox commented Mar 31, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 31, 2017

Trying commit e527c9a with merge adee7e5...

bors-servo added 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
Copy link
Contributor

bors-servo commented Mar 31, 2017

📌 Commit e527c9a has been approved by jdm

@nox
Copy link
Member Author

nox commented Mar 31, 2017

@bors-servo try- retry

@bors-servo
Copy link
Contributor

bors-servo commented Mar 31, 2017

Testing commit e527c9a with merge 5c3e549...

bors-servo added 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

bors-servo commented Mar 31, 2017

💔 Test failed - linux-rel-wpt

@nox
Copy link
Member Author

nox commented Mar 31, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 31, 2017

Testing commit e527c9a with merge 82b0d5a...

bors-servo added 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

bors-servo commented Mar 31, 2017

☀️ 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
4 checks passed
4 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
dependency-ci Dependencies checked
Details
homu Test successful
Details
@SimonSapin SimonSapin deleted the hyper branch Apr 26, 2017
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

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