summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-12-08 00:02:41 -0800
committerdormando <dormando@rydia.net>2020-12-11 13:55:21 -0800
commit585d03f198c5907c9a07f97fa89bb7b9851a874e (patch)
tree1a4abcf44c5e698e41a65dc155dda45db8ab4ae8 /memcached.h
parentc472369fed5981ba8c004d426cee62d5165c47ca (diff)
downloadmemcached-585d03f198c5907c9a07f97fa89bb7b9851a874e.tar.gz
core: support malloc'ed blobs for body read
conn_nread state handles c->item like an item, but allow it to be a temporary malloced blob via setting c->item_malloced = true. to be used for buffering value reads in the proxy code.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index 8149cf4..ba2ac59 100644
--- a/memcached.h
+++ b/memcached.h
@@ -728,6 +728,7 @@ struct conn {
bool mset_res; /** uses mset format for return code */
bool close_after_write; /** flush write then move to close connection */
bool rbuf_malloced; /** read buffer was malloc'ed for ascii mget, needs free() */
+ bool item_malloced; /** item for conn_nread state is a temporary malloc */
#ifdef TLS
SSL *ssl;
char *ssl_wbuf;