From 9bf3b52d54586d6b7f22e6a169fb651893142a46 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 6 Feb 2018 10:02:16 +0000 Subject: [PATCH] Call proxy_finish_connect_to_upstream when reconnecting, setting TCP_NODELAY --- src/proxy/proxy.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/proxy/proxy.c b/src/proxy/proxy.c index 39c1081..8283d8c 100644 --- a/src/proxy/proxy.c +++ b/src/proxy/proxy.c @@ -534,11 +534,8 @@ int proxy_read_init_from_upstream( struct proxier* proxy, int state ) goto disconnect; } - /* record the flags, and log the reconnection */ - // TODO: Should we call this at all here? We lose the - // upstream_size and flags otherwise, but then we can't - // renegotiate anyway. - // proxy_finish_connect_to_upstream( proxy, upstream_size, upstream_flags ); + /* record the flags, and log the reconnection, set TCP_NODELAY */ + proxy_finish_connect_to_upstream( proxy, upstream_size, upstream_flags ); /* Currently, we only get disconnected from upstream (so needing to come * here) when we have an outstanding request. If that becomes false,