From 838fda3fdacfd16511c24c5638b8e2de49224c39 Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 2 Feb 2022 23:53:02 -0800 Subject: proxy: fix bug/crash for set commands if a conn goes to sleep while reading set data from the network its coroutine would be lost, and crash/corruption on next resume. this now properly handles lifetime/cleanup of the coroutine. --- memcached.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'memcached.h') diff --git a/memcached.h b/memcached.h index f096f44..7826c41 100644 --- a/memcached.h +++ b/memcached.h @@ -819,6 +819,9 @@ struct conn { int io_queues_submitted; /* see notes on io_queue_t */ io_queue_t io_queues[IO_QUEUE_COUNT]; /* set of deferred IO queues. */ +#ifdef PROXY + unsigned int proxy_coro_ref; /* lua reference for active coroutine */ +#endif #ifdef EXTSTORE unsigned int recache_counter; #endif -- cgit v1.2.1