]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Special case for partial requests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 29 Dec 2016 16:02:12 +0000 (16:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 29 Dec 2016 18:58:16 +0000 (18:58 +0000)
src/lua/lua_tcp.c

index 322f5e773ce1e33873d786d05921ced73f4d0556..39a94f2c0db62c64d7826d3de5da4e8862060ee4 100644 (file)
@@ -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);