summaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 19:55:25 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 19:55:25 +0400
commite7f25690a5c13c2dc084aab4b5bd7dc8e052332e (patch)
tree7cde0034381450dc4ed87a7d78cc1a906e171ed9 /src/worker.c
parentf5bc6840a7db6034eeec338454105814fabbfb32 (diff)
downloadrspamd-e7f25690a5c13c2dc084aab4b5bd7dc8e052332e.tar.gz
rspamd-e7f25690a5c13c2dc084aab4b5bd7dc8e052332e.zip
* Handle cases of broken requests
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index 8edf2ccce..15b73e2c7 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -351,6 +351,10 @@ read_socket (f_str_t * in, void *arg)
return write_socket (task);
}
break;
+ case WRITE_REPLY:
+ case WRITE_ERROR:
+ return write_socket (task);
+ break;
default:
debug_task ("invalid state on reading stage");
break;