From c40e407ad02a00f43fcf779b8eb8ab9edef8e057 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 21 Dec 2017 14:41:17 -0800 Subject: [PATCH] disable push promises in proxy (#70) --- proxy/src/bind.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy/src/bind.rs b/proxy/src/bind.rs index 4d91c17e1..c04d74097 100644 --- a/proxy/src/bind.rs +++ b/proxy/src/bind.rs @@ -52,12 +52,16 @@ type CtxtExec = ::logging::ContextualExecutor<(&'static str, SocketAddr), Handle impl Bind<(), B> { pub fn new(executor: Handle) -> Self { + let mut h2_builder = h2::client::Builder::default(); + // h2 currently doesn't handle PUSH_PROMISE that well, so we just + // disable it for now. + h2_builder.enable_push(false); Self { executor, ctx: (), sensors: telemetry::Sensors::null(), req_ids: Default::default(), - h2_builder: h2::client::Builder::default(), + h2_builder, connect_timeout: Duration::from_millis(DEFAULT_TIMEOUT_MS), _p: PhantomData, }