aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Hätälä <antti@umbrasoftware.com>2017-04-04 15:50:36 -0400
committerJay Satiro <raysatiro@yahoo.com>2017-04-04 16:03:26 -0400
commit36e604fc78396d1f69c20e69e13302bce7471e78 (patch)
tree37978ab7723cf3fe9f99ad4c20980ecea527d522
parent5fadd0311cb3180b64bd54042f93fc7bbeb06e07 (diff)
url: don't free postponed data on connection reuse
- Don't free postponed data on a connection that will be reused since doing so can cause data loss when pipelining. Only Windows builds are affected by this. Closes https://github.com/curl/curl/issues/1380
-rw-r--r--lib/url.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 33ba783fc..4609f4fda 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -6215,7 +6215,6 @@ static void reuse_conn(struct connectdata *old_conn,
Curl_persistconninfo(conn);
conn_reset_all_postponed_data(old_conn); /* free buffers */
- conn_reset_all_postponed_data(conn); /* reset unprocessed data */
/* re-use init */
conn->bits.reuse = TRUE; /* yes, we're re-using here */