From 2a8a2999722ed25eec0384f664ce80726806a7f7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 29 Dec 2016 16:02:12 +0000 Subject: [PATCH] [Minor] Special case for partial requests --- src/lua/lua_tcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index 322f5e773..39a94f2c0 100644 --- a/src/lua/lua_tcp.c +++ b/src/lua/lua_tcp.c @@ -487,8 +487,7 @@ lua_tcp_process_read (struct lua_tcp_cbdata *cbd, if (cbd->flags & LUA_TCP_FLAG_PARTIAL) { lua_tcp_push_data (cbd, in, r); /* Plan next event */ - lua_tcp_shift_handler (cbd); - lua_tcp_shift_handler (cbd); + lua_tcp_plan_read (cbd); } else { g_byte_array_append (cbd->in, in, r); -- 2.39.5