From 585d03f198c5907c9a07f97fa89bb7b9851a874e Mon Sep 17 00:00:00 2001 From: dormando Date: Tue, 8 Dec 2020 00:02:41 -0800 Subject: 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. --- memcached.h | 1 + 1 file changed, 1 insertion(+) (limited to 'memcached.h') 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; -- cgit v1.2.1