diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 17:35:03 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-02 17:35:03 +0300 |
commit | 186f9ab430c1f20efb595da504570fd0b575836a (patch) | |
tree | a38d6864f48615d0a23ebab01c605987e01d2fb3 /src/plugins | |
parent | 13d4ef61a37119a0853e6570a827e5bd60bfa06f (diff) | |
download | rspamd-186f9ab430c1f20efb595da504570fd0b575836a.tar.gz rspamd-186f9ab430c1f20efb595da504570fd0b575836a.zip |
* Properly set initial state for surbl state machine
* Ignore SIGPIPE globally as dispatcher performs check of all write (2) calls
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/surbl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index cd814187f..5b9b35546 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -511,7 +511,6 @@ redirector_callback (int fd, short what, void *arg) if (*p == '\0') { msg_info ("redirector_callback: got reply from redirector: '%s' -> '%s'", struri (param->url), c); parse_uri (param->url, c, param->task->task_pool); - param->task->save.saved ++; } } event_del (¶m->ev); @@ -572,7 +571,7 @@ register_redirector_call (struct uri *url, struct worker_task *task) param = memory_pool_alloc (task->task_pool, sizeof (struct redirector_param)); param->url = url; param->task = task; - param->state = STATE_READ; + param->state = STATE_CONNECT; param->sock = s; timeout.tv_sec = surbl_module_ctx->connect_timeout / 1000; timeout.tv_usec = surbl_module_ctx->connect_timeout - timeout.tv_sec * 1000; |