commit 067244c327e5f76ac4d1be299a0c027f00a4c9a7
parent 854c0df70e1bc6a663cdcbd84d3643952371ef9a
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Mon, 10 Sep 2018 10:13:57 +0200
#5337.
Reverting the original assertion and using CURLOPT_VERBOSE
upon POSTs. The original assertion should not be touched as
it could bring fuzzy states in..
Diffstat:
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -457,17 +457,8 @@ curl_download_cb (void *ptr,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Curl download proceeding\n");
-
- /* This condition holds when, for example, a Web
- * server gives the response _before_ having received
- * all the upload data, or no upload data at all. */
- if (REQUEST_STATE_DOWNLOAD_STARTED != hr->state)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Download prematurely started\n");
- hr->state = REQUEST_STATE_DOWNLOAD_STARTED;
- }
-
+ GNUNET_assert
+ (REQUEST_STATE_DOWNLOAD_STARTED == hr->state);
if (hr->io_size - hr->io_len < total)
{
@@ -1352,6 +1343,10 @@ create_response (void *cls,
curl_easy_setopt (hr->curl,
CURLOPT_POST,
1L);
+
+ curl_easy_setopt (hr->curl,
+ CURLOPT_VERBOSE,
+ 1L);
GNUNET_assert
(CURLE_OK == curl_easy_setopt
(hr->curl,