From: Vsevolod Stakhov Date: Wed, 27 May 2015 15:20:32 +0000 (+0100) Subject: Fix no delayed symbols processing. X-Git-Tag: 1.0.0~603 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3870577d1605c03bee6f1bc67f79365bf3906c97;p=thirdparty%2Frspamd.git Fix no delayed symbols processing. --- diff --git a/src/worker.c b/src/worker.c index ec8fb464cc..e59054414f 100644 --- a/src/worker.c +++ b/src/worker.c @@ -149,7 +149,7 @@ rspamd_worker_finish_handler (struct rspamd_http_connection *conn, { struct rspamd_task *task = (struct rspamd_task *) conn->ud; - if (task->state == CLOSING_CONNECTION || task->state == WRITING_REPLY) { + if (task->state == CLOSING_CONNECTION) { /* We are done here */ msg_debug ("normally closing connection from: %s", rspamd_inet_address_to_string (task->client_addr)); @@ -167,6 +167,11 @@ rspamd_worker_finish_handler (struct rspamd_http_connection *conn, /* Forcefully set the state */ task->state = CLOSING_CONNECTION; } + else if (task->state == WRITING_REPLY) { + msg_debug ("still writing reply to: %s", + rspamd_inet_address_to_string (task->client_addr)); + task->state = CLOSING_CONNECTION; + } else { /* * If all filters have finished their tasks, this function will trigger