mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
INFILESIZE: fields in UserDefined must not be changed run-time
set.infilesize in this case was modified in several places, which could lead to repeated requests using the same handle to get unintendent/wrong consequences based on what the previous request did!
This commit is contained in:
parent
9c941e92c4
commit
d5ec44ca4c
13 changed files with 57 additions and 51 deletions
|
|
@ -404,6 +404,8 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
|
|||
/* Point to the multi's connection cache */
|
||||
data->state.conn_cache = multi->conn_cache;
|
||||
|
||||
data->state.infilesize = data->set.filesize;
|
||||
|
||||
/* This adds the new entry at the 'end' of the doubly-linked circular
|
||||
list of SessionHandle structs to try and maintain a FIFO queue so
|
||||
the pipelined requests are in order. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue