curl-library
[PATCH 4/7] pipelining: also keep bundle for a 'retry'.
From: Carlo Wood <carlo_at_alinoe.com>
Date: Thu, 6 Nov 2014 03:03:18 +0100
Date: Thu, 6 Nov 2014 03:03:18 +0100
Also don't delete the bundle when a connection closed that is marked for
retry. The retry will pick up the bundle again, so we still know if it
supports pipelining or not; which is much better than having to detect
that all over again.
--- lib/multi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/multi.c b/lib/multi.c index fde54fa..50c4cf8 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -1660,7 +1660,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, capable of pipelining. */ bundle = data->easy_conn->bundle; keep_bundle = (bundle->server_supports_pipelining && - data->result == CURLE_OPERATION_TIMEDOUT); + (data->result == CURLE_OPERATION_TIMEDOUT || + data->easy_conn->bits.retry)); if(keep_bundle) ++bundle->num_connections; -- 2.1.1 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-11-06