servo: Merge #16225 - Disable HTTP connection pooling (from jdm:revertpooling); r=KiChjang
authorJosh Matthews <josh@joshmatthews.net>
Sat, 01 Apr 2017 17:32:24 -0500
changeset 554731 13c98d5a8755c283aee8bd851a5151e28f3524b3
parent 554730 eb5ed22abdb3a5600484817569477632b1e76911
child 554732 7f3311ae2d4e65fb110ffca1013a84be04d40ed4
push id52037
push userbmo:manishearth@gmail.com
push dateSun, 02 Apr 2017 03:00:01 +0000
reviewersKiChjang
milestone55.0a1
servo: Merge #16225 - Disable HTTP connection pooling (from jdm:revertpooling); r=KiChjang The intermittent failures in the nosniff tests appeared once more after #16209 merged, so we should disable this again. Source-Repo: https://github.com/servo/servo Source-Revision: dc3765e231441b006f17c9aa4588e7f166bba45e
servo/components/net/resource_thread.rs
--- a/servo/components/net/resource_thread.rs
+++ b/servo/components/net/resource_thread.rs
@@ -321,17 +321,18 @@ impl CoreResourceManager {
     fn fetch(&self,
              init: RequestInit,
              mut sender: IpcSender<FetchResponseMsg>,
              group: &ResourceGroup) {
         let http_state = HttpState {
             hsts_list: group.hsts_list.clone(),
             cookie_jar: group.cookie_jar.clone(),
             auth_cache: group.auth_cache.clone(),
-            connector_pool: group.connector.clone(),
+            // FIXME(#15694): use group.connector.clone() instead.
+            connector_pool: create_http_connector("certs"),
         };
         let ua = self.user_agent.clone();
         let dc = self.devtools_chan.clone();
         let filemanager = self.filemanager.clone();
 
         thread::Builder::new().name(format!("fetch thread for {}", init.url)).spawn(move || {
             let request = Request::from_init(init);
             // XXXManishearth: Check origin against pipeline id (also ensure that the mode is allowed)