]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Disable shutdown workaround for HTTP
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 3 Mar 2016 10:05:28 +0000 (10:05 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 3 Mar 2016 10:06:07 +0000 (10:06 +0000)
src/worker.c

index bd54368a6bfc5c212b25cd52199c73a13a4acf53..3b7307342b2664acf557093c896a8b55dd7855b5 100644 (file)
@@ -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);