gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-twister] branch master updated: #5337.


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] branch master updated: #5337.
Date: Mon, 10 Sep 2018 10:16:06 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository twister.

The following commit(s) were added to refs/heads/master by this push:
     new 067244c   #5337.
067244c is described below

commit 067244c327e5f76ac4d1be299a0c027f00a4c9a7
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Sep 10 10:13:57 2018 +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..
---
 src/twister/taler-twister-service.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/twister/taler-twister-service.c 
b/src/twister/taler-twister-service.c
index 65368cb..47d6b8f 100644
--- 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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]