curl-library
[patch] curl_easy_reset() triggers progress meter
Date: Tue, 28 Sep 2004 12:15:09 +0200
Hi,
Here's a patch to fully avoid curl_easy_reset() to enable progress meter
(I think the current behaviour is not consistent, as curl_easy_init()
doesn't enable it). Any ideas or suggestions ?
Btw, did you have time to check the new patch for the read() on free()ed
data due to verbose setting ?
--- curl-7.12.2-20040928/lib/easy.c.00 Tue Sep 28 11:49:36 2004
+++ curl-7.12.2-20040928/lib/easy.c Tue Sep 28 11:54:47 2004
@@ -77,6 +77,7 @@
#include "hostip.h"
#include "share.h"
#include "memory.h"
+#include "progress.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -561,6 +562,7 @@
/* make libcurl quiet by default: */
data->set.hide_progress = TRUE; /* CURLOPT_NOPROGRESS changes these */
+ data->progress.flags |= PGRS_HIDE;
/* Set the default size of the SSL session ID cache */
data->set.ssl.numsessions = 5;
Received on 2004-09-28