From: Vsevolod Stakhov Date: Thu, 3 Mar 2016 10:05:28 +0000 (+0000) Subject: [Minor] Disable shutdown workaround for HTTP X-Git-Tag: 1.2.0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4073ae8c9ccb7b999b7a1b1d9e6507137c63255;p=thirdparty%2Frspamd.git [Minor] Disable shutdown workaround for HTTP --- diff --git a/src/worker.c b/src/worker.c index bd54368a6b..3b7307342b 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);