aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-02-20 18:49:04 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-02-20 18:49:04 +0300
commit606128de4cb33a2727d6609df46ecf0c72006a73 (patch)
tree8a12200c73b1ca0446b6f855beb46546ffbd8a81 /src/protocol.c
parentbcece60fa1bfd4bbb09a64c058835fe3245e1d18 (diff)
downloadrspamd-606128de4cb33a2727d6609df46ecf0c72006a73.tar.gz
rspamd-606128de4cb33a2727d6609df46ecf0c72006a73.zip
* Fix dispatcher timeouts handling
* Add wanna_die flag that can be used in dispatcher's callbacks
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index ab0db5f78..543507c61 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -91,6 +91,7 @@ parse_command (struct worker_task *task, char *line)
{
char *token;
+ msg_debug ("parse_command: got line from worker: %s", line);
token = strsep (&line, " ");
if (line == NULL || token == NULL) {
msg_debug ("parse_command: bad command: %s", token);
@@ -191,6 +192,7 @@ parse_header (struct worker_task *task, char *line)
task->last_error = "Unknown content length";
task->error_code = RSPAMD_LENGTH_ERROR;
task->state = WRITE_ERROR;
+ return -1;
}
}
return 0;