]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Call read callback when no stop_pattern is specified
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 29 Dec 2016 15:54:07 +0000 (15:54 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 29 Dec 2016 18:58:16 +0000 (18:58 +0000)
src/lua/lua_tcp.c

index b3276b709b084e80d0ca5a7d08a221e599b9fafa..322f5e773ce1e33873d786d05921ced73f4d0556 100644 (file)
@@ -461,6 +461,12 @@ lua_tcp_process_read_handler (struct lua_tcp_cbdata *cbd,
                        }
                }
        }
+       else {
+               lua_tcp_push_data (cbd, cbd->in->data, cbd->in->len);
+               lua_tcp_shift_handler (cbd);
+
+               return TRUE;
+       }
 
        return FALSE;
 }