diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2012-01-18 15:13:21 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2012-01-18 15:13:21 +0000 |
| commit | 2a7daafe67dbd6a91ab557b56b2ca12ca87a6022 (patch) | |
| tree | a2005365ba56694fd925cd9d8f2687ea003a376f /lib/libfetch/common.h | |
| parent | ffce9a999dda9489933a511d264f71cd9e7e78b6 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/common.h')
| -rw-r--r-- | lib/libfetch/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 35e0dfd0a7c8..241dbbf8b465 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -52,6 +52,13 @@ struct fetchconn { size_t bufsize; /* buffer size */ size_t buflen; /* length of buffer contents */ int err; /* last protocol reply code */ + struct { /* data cached after an interrupted + read */ + char *buf; + size_t size; + size_t pos; + size_t len; + } cache; #ifdef WITH_SSL SSL *ssl; /* SSL handle */ SSL_CTX *ssl_ctx; /* SSL context */ |
