Commit 36e604fc authored by Antti Hätälä's avatar Antti Hätälä Committed by Jay Satiro
Browse files

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
parent 5fadd031
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -6215,7 +6215,6 @@ static void reuse_conn(struct connectdata *old_conn,
  Curl_persistconninfo(conn);
  Curl_persistconninfo(conn);


  conn_reset_all_postponed_data(old_conn); /* free buffers */
  conn_reset_all_postponed_data(old_conn); /* free buffers */
  conn_reset_all_postponed_data(conn);     /* reset unprocessed data */


  /* re-use init */
  /* re-use init */
  conn->bits.reuse = TRUE; /* yes, we're re-using here */
  conn->bits.reuse = TRUE; /* yes, we're re-using here */