summaryrefslogtreecommitdiff
path: root/content/fetch.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-24 09:47:52 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-24 09:47:52 +0000
commit083ba385d70a6fbc0c89ffbc42f66d035a856139 (patch)
tree1c13f9cb9d1299353edd8314d24423495fb70008 /content/fetch.h
parent50ff8433da5aa19c70459e5370cc1744917a9000 (diff)
downloadnetsurf-083ba385d70a6fbc0c89ffbc42f66d035a856139.tar.gz
netsurf-083ba385d70a6fbc0c89ffbc42f66d035a856139.tar.bz2
fetch: Automatically handle fetches which fail to finish
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/fetch.h')
-rw-r--r--content/fetch.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/content/fetch.h b/content/fetch.h
index 9e80b2685..817d5e2f8 100644
--- a/content/fetch.h
+++ b/content/fetch.h
@@ -39,19 +39,27 @@ struct ssl_cert_info;
*/
typedef enum {
FETCH_PROGRESS,
+ FETCH_CERTS,
FETCH_HEADER,
FETCH_DATA,
+ /* Anything after here is a completed fetch of some kind. */
FETCH_FINISHED,
FETCH_TIMEDOUT,
FETCH_ERROR,
FETCH_REDIRECT,
FETCH_NOTMODIFIED,
- FETCH_CERTS,
FETCH_AUTH,
FETCH_CERT_ERR,
FETCH_SSL_ERR
} fetch_msg_type;
+/** Minimum finished message type.
+ *
+ * If a fetch does not progress this far, it's an error and the fetch machinery
+ * will send FETCH_ERROR to the llcache on fetch_free()
+ */
+#define FETCH_MIN_FINISHED_MSG FETCH_FINISHED
+
/**
* Fetcher message data
*/