r10055 jmb - /branches/jmb/new-cache/content/content.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Feb 14 14:27:09 GMT 2010


Author: jmb
Date: Sun Feb 14 08:27:09 2010
New Revision: 10055

URL: http://source.netsurf-browser.org?rev=10055&view=rev
Log:
Cause low-level cache to abort fetch if data processing fails

Modified:
    branches/jmb/new-cache/content/content.c

Modified: branches/jmb/new-cache/content/content.c
URL: http://source.netsurf-browser.org/branches/jmb/new-cache/content/content.c?rev=10055&r1=10054&r2=10055&view=diff
==============================================================================
--- branches/jmb/new-cache/content/content.c (original)
+++ branches/jmb/new-cache/content/content.c Sun Feb 14 08:27:09 2010
@@ -490,6 +490,7 @@
 {
 	struct content *c = pw;
 	union content_msg_data msg_data;
+	nserror error = NSERROR_OK;
 
 	switch (event->type) {
 	case LLCACHE_EVENT_HAD_HEADERS:
@@ -501,7 +502,8 @@
 					(char *) event->data.data.buf, 
 					event->data.data.len) == false) {
 				c->status = CONTENT_STATUS_ERROR;
-				/** \todo Abort fetch */
+				/** \todo It's not clear what error this is */
+				error = NSERROR_NOMEM;
 			}
 		}
 		break;
@@ -530,7 +532,7 @@
 		break;
 	}
 
-	return NSERROR_OK;
+	return error;
 }
 
 /**




More information about the netsurf-commits mailing list