From f06dc8ca278b218414340680baf34fdccbf52b6f Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 1 Feb 2023 14:35:22 -0800 Subject: proxy: disallow overriding mn command When using CMD_ANY_STORAGE to enable the proxy this causes the MN command to no longer work as intended; the proxy eats the command and does not flush the client response pipeline. --- proxy_lua.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy_lua.c b/proxy_lua.c index f309515..2d38b8e 100644 --- a/proxy_lua.c +++ b/proxy_lua.c @@ -826,6 +826,11 @@ static int mcplib_attach(lua_State *L) { for (int x = loop_start; x < loop_end; x++) { struct proxy_hook *h = &hooks[x]; + if (x == CMD_MN) { + // disallow overriding MN so client pipeline flushes work. + // need to add flush support before allowing override + continue; + } lua_pushvalue(L, 2); // duplicate the function for the ref. if (tag) { -- cgit v1.2.1