Debug setting that keeps connections open

This commit is contained in:
Willem Toorop 2016-05-25 15:57:37 +02:00
parent e25e697970
commit e01211d6b4
1 changed files with 4 additions and 0 deletions

View File

@ -324,7 +324,11 @@ process_keepalive(
if (netreq->keepalive_sent == 1) if (netreq->keepalive_sent == 1)
/* If no keepalive sent back, then we must use 0 idle timeout /* If no keepalive sent back, then we must use 0 idle timeout
as server does not support it.*/ as server does not support it.*/
#if defined(KEEP_CONNECTIONS_OPEN_DEBUG) && KEEP_CONNECTIONS_OPEN_DEBUG
upstream->keepalive_timeout = netreq->owner->context->idle_timeout;
#else
upstream->keepalive_timeout = 0; upstream->keepalive_timeout = 0;
#endif
return; return;
} }
/* Use server sent value unless the client specified a shorter one. /* Use server sent value unless the client specified a shorter one.