]> granicus.if.org Git - curl/commitdiff
url: don't free postponed data on connection reuse
authorAntti Hätälä <antti@umbrasoftware.com>
Tue, 4 Apr 2017 19:50:36 +0000 (15:50 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 4 Apr 2017 20:03:26 +0000 (16:03 -0400)
- 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

lib/url.c

index 33ba783fc293f946817a6c9e0bd3016a0b0846f8..4609f4fdaab540d24dd5972a57c92fd53907d89e 100644 (file)
--- 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 */