diff options
author | dormando <dormando@rydia.net> | 2022-05-31 23:27:22 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-07-24 23:02:50 -0700 |
commit | d273bd2063ac3e3171e8c74d0a8557102429a3f2 (patch) | |
tree | e3e859c84b071779ab99c3c817d77331caa77b9a /proxy_lua.c | |
parent | 581e41623074cc989c11de03099994fe74db164a (diff) | |
download | memcached-d273bd2063ac3e3171e8c74d0a8557102429a3f2.tar.gz |
proxy: rework backend buffer handling
experimental change. *io_uring mode is presently broken*
there are some potential protocol desync bugs due to mcmc handling its
own buffers and the newer event handler handling its own syscalls.
this change should have better separation of code for the buffer
tracking. if this change works I will add some optimizations to reduce
memmove's.
Diffstat (limited to 'proxy_lua.c')
-rw-r--r-- | proxy_lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_lua.c b/proxy_lua.c index aa0ea4e..5f5707c 100644 --- a/proxy_lua.c +++ b/proxy_lua.c @@ -104,7 +104,7 @@ static int mcplib_backend(lua_State *L) { strncpy(be->name, name, MAX_NAMELEN); strncpy(be->port, port, MAX_PORTLEN); be->depth = 0; - be->rbuf = NULL; + be->rbufused = 0; be->failed_count = 0; STAILQ_INIT(&be->io_head); be->state = mcp_backend_read; |