From e01211d6b4c003c9c013af94eb62d9f4f6558332 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Wed, 25 May 2016 15:57:37 +0200 Subject: [PATCH] Debug setting that keeps connections open --- src/stub.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stub.c b/src/stub.c index ab7f1805..fe35f733 100644 --- a/src/stub.c +++ b/src/stub.c @@ -324,7 +324,11 @@ process_keepalive( if (netreq->keepalive_sent == 1) /* If no keepalive sent back, then we must use 0 idle timeout 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; +#endif return; } /* Use server sent value unless the client specified a shorter one.