]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fuzzy_check: Fix timeouts
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Jul 2019 10:51:20 +0000 (11:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Jul 2019 10:51:20 +0000 (11:51 +0100)
src/plugins/fuzzy_check.c

index 385c16b7108cf5b6bc4aa302b29497d4ffa107f1..d8e98059c4f5564fc1617984e179198440d28dee 100644 (file)
@@ -2282,7 +2282,14 @@ fuzzy_check_io_callback (gint fd, short what, void *arg)
 
                switch (r) {
                case 0:
-                       ret = return_want_more;
+                       if (what & EV_READ) {
+                               ret = return_want_more;
+                       }
+                       else {
+                               /* It is actually time out */
+                               fuzzy_check_timer_callback (fd, what, arg);
+                               return;
+                       }
                        break;
                case 1:
                        ret = return_finished;