changeset 943:584ab2a62af5 trunk

[svn] - if handle->cancel = TRUE, immediately abort the fread operation.
author nenolod
date Thu, 12 Apr 2007 12:02:56 -0700
parents e5f24a83d909
children fe18e45e6660
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Apr 12 11:35:08 2007 -0700
+++ b/ChangeLog	Thu Apr 12 12:02:56 2007 -0700
@@ -1,3 +1,11 @@
+2007-04-12 18:35:08 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2012]
+  - comment out debug cflags
+  
+  trunk/src/curl/Makefile |   10 +++++-----
+  1 file changed, 5 insertions(+), 5 deletions(-)
+
+
 2007-04-12 18:29:55 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2010]
   - fix last warnings
--- a/src/curl/curl.c	Thu Apr 12 11:35:08 2007 -0700
+++ b/src/curl/curl.c	Thu Apr 12 12:02:56 2007 -0700
@@ -729,6 +729,8 @@
 	  //g_print("Wait for data on %p\n", handle);
 	  g_usleep(10000);
 	}
+      if (handle->cancel)
+          return (ret / size);
       if (available > sz - ret)
 	available = sz - ret;
       memcpy(ptr + ret, handle->buffer + handle->rd_index, available);