Call proxy_finish_connect_to_upstream when reconnecting, setting

TCP_NODELAY
This commit is contained in:
Patrick J Cherry
2018-02-06 10:02:16 +00:00
parent da35187af0
commit 9bf3b52d54

View File

@@ -534,11 +534,8 @@ int proxy_read_init_from_upstream( struct proxier* proxy, int state )
goto disconnect; goto disconnect;
} }
/* record the flags, and log the reconnection */ /* record the flags, and log the reconnection, set TCP_NODELAY */
// TODO: Should we call this at all here? We lose the proxy_finish_connect_to_upstream( proxy, upstream_size, upstream_flags );
// upstream_size and flags otherwise, but then we can't
// renegotiate anyway.
// proxy_finish_connect_to_upstream( proxy, upstream_size, upstream_flags );
/* Currently, we only get disconnected from upstream (so needing to come /* Currently, we only get disconnected from upstream (so needing to come
* here) when we have an outstanding request. If that becomes false, * here) when we have an outstanding request. If that becomes false,