Author: rhuijben
Date: Mon Nov 9 18:11:59 2015
New Revision: 1713500
URL: http://svn.apache.org/viewvc?rev=1713500&view=rev
Log:
* ssltunnel.c
(handle_response): Reset number of completed connections to avoid applying
the guessed number of maximum keepalives when it is 1.
Modified:
serf/trunk/ssltunnel.c
Modified: serf/trunk/ssltunnel.c
URL:
http://svn.apache.org/viewvc/serf/trunk/ssltunnel.c?rev=1713500&r1=1713499&r2=1713500&view=diff
==============================================================================
--- serf/trunk/ssltunnel.c (original)
+++ serf/trunk/ssltunnel.c Mon Nov 9 18:11:59 2015
@@ -132,6 +132,10 @@ static apr_status_t handle_response(serf
serf__bucket_headers_remove(hdrs, "Connection");
}
+ /* Avoid problems caused by max-keepalive guessing */
+ conn->completed_requests = 0;
+ /* ### Reset max-keepalive? */
+
return APR_EOF;
}