aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-26 11:51:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-26 11:51:20 +0100
commit02d842a709915be441146d9076e4e6b03f45deac (patch)
tree6b544f417b881a2d5866141ba17fc59795d38953 /src/plugins/fuzzy_check.c
parent2ac3b3bf197340c9f161ed399ccb798b84ea7ebd (diff)
downloadrspamd-02d842a709915be441146d9076e4e6b03f45deac.tar.gz
rspamd-02d842a709915be441146d9076e4e6b03f45deac.zip
[Fix] Fuzzy_check: Fix timeouts
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 385c16b71..d8e98059c 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -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;