mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
easy: Reset all statistical session info in curl_easy_reset
Bug: https://github.com/curl/curl/issues/1017 Reported-by: Jeroen Ooms
This commit is contained in:
parent
6834ebaaa3
commit
22cfeac730
7 changed files with 153 additions and 7 deletions
|
|
@ -995,6 +995,9 @@ void curl_easy_reset(struct Curl_easy *data)
|
|||
/* zero out Progress data: */
|
||||
memset(&data->progress, 0, sizeof(struct Progress));
|
||||
|
||||
/* zero out PureInfo data: */
|
||||
Curl_initinfo(data);
|
||||
|
||||
data->progress.flags |= PGRS_HIDE;
|
||||
data->state.current_speed = -1; /* init to negative == impossible */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue