gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 58/173: curl: reset the easy handle at --next


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 58/173: curl: reset the easy handle at --next
Date: Fri, 24 Feb 2017 14:01:20 +0100

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

ng0 pushed a commit to annotated tag gnurl-7.53.1
in repository gnurl.

commit a301cbb655ed0f5693e1e15068174919e6e94e98
Author: Isaac Boukris <address@hidden>
AuthorDate: Fri Jan 13 14:07:52 2017 +0100

    curl: reset the easy handle at --next
    
    So that only "global" options (verbose mostly) survive into the next
    transfer, and the others have to be set again unless default is fine.
---
 src/tool_operate.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/tool_operate.c b/src/tool_operate.c
index 4fa32bcf3..eff939f8c 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <address@hidden>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <address@hidden>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -1999,6 +1999,9 @@ CURLcode operate(struct GlobalConfig *config, int argc, 
argv_item_t argv[])
           result = operate_do(config, config->current);
 
           config->current = config->current->next;
+
+          if(config->current && config->current->easy)
+            curl_easy_reset(config->current->easy);
         }
 
 #ifndef CURL_DISABLE_LIBCURL_OPTION

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



reply via email to

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