From c4073ae8c9ccb7b999b7a1b1d9e6507137c63255 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Mar 2016 10:05:28 +0000 Subject: [PATCH] [Minor] Disable shutdown workaround for HTTP --- src/worker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/worker.c b/src/worker.c index bd54368a6..3b7307342 100644 --- a/src/worker.c +++ b/src/worker.c @@ -146,7 +146,8 @@ rspamd_worker_guard_handler (gint fd, short what, void *data) * reliable way to distinguish between shutdown(SHUT_WR) and * close. */ - if (task->cfg->enable_shutdown_workaround) { + if (!(task->flags & RSPAMD_TASK_FLAG_JSON) && + task->cfg->enable_shutdown_workaround) { msg_info_task ("workaround for shutdown enabled, please update " "your client, this support might be removed in future"); shutdown (fd, SHUT_RD); -- 2.39.5