Commit 7c3f72ed authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove pointless initialization.

Fix indentation.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3493 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2d93ad89
......@@ -382,7 +382,7 @@ SES_ResetBackendTimeouts(struct sess *sp)
void
SES_InheritBackendTimeouts(struct sess *sp)
{
struct backend *be = NULL;
struct backend *be;
AN(sp);
AN(sp->vbe);
......@@ -395,13 +395,12 @@ SES_InheritBackendTimeouts(struct sess *sp)
* is parameter < backend definition < VCL.
*/
if (be->connect_timeout > 1e-3 &&
sp->connect_timeout == params->connect_timeout)
sp->connect_timeout == params->connect_timeout)
sp->connect_timeout = be->connect_timeout;
if (be->first_byte_timeout > 1e-3 &&
sp->first_byte_timeout == params->first_byte_timeout)
sp->first_byte_timeout == params->first_byte_timeout)
sp->first_byte_timeout = be->first_byte_timeout;
if (be->between_bytes_timeout > 1e-3
&& sp->between_bytes_timeout == params->between_bytes_timeout)
if (be->between_bytes_timeout > 1e-3 &&
sp->between_bytes_timeout == params->between_bytes_timeout)
sp->between_bytes_timeout = be->between_bytes_timeout;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment