changeset 948:8dd7c03376bb trunk

[svn] - add DEBUG_CURL to enable curl internal debugging messages
author nenolod
date Thu, 12 Apr 2007 14:55:59 -0700
parents 24a5068bb7f8
children d3b9627861de
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Apr 12 14:04:26 2007 -0700
+++ b/ChangeLog	Thu Apr 12 14:55:59 2007 -0700
@@ -1,3 +1,11 @@
+2007-04-12 21:04:26 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2028]
+  - only create a new thread if handle->cancel is 0.
+  
+  trunk/src/curl/curl.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-04-12 20:22:28 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2022]
   - use a g_cond_wait() to ensure curl has started up before we try to read.
--- a/src/curl/curl.c	Thu Apr 12 14:04:26 2007 -0700
+++ b/src/curl/curl.c	Thu Apr 12 14:55:59 2007 -0700
@@ -41,6 +41,7 @@
 #define DEBUG_ICY_WRAP 0
 #define DEBUG_ICY_VERBOSE 0
 #define DEBUG_METADATA_REPORT 0
+#define DEBUG_CURL 0
 
 typedef struct _CurlHandle CurlHandle;
 
@@ -587,6 +588,9 @@
 
   curl_easy_setopt(handle->curl, CURLOPT_FOLLOWLOCATION, 1);
 
+  if (DEBUG_CURL)
+    curl_easy_setopt(handle->curl, CURLOPT_VERBOSE, 1);
+
   {
     gboolean tmp = FALSE;
     ConfigDb *db;