diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-03 10:05:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-03 10:06:07 +0000 |
commit | c4073ae8c9ccb7b999b7a1b1d9e6507137c63255 (patch) | |
tree | 36895fe56633cffc738c86b2f9abe6f691eeb853 /src/worker.c | |
parent | d81551a9394d134dbe4298f15ea935d5a948aa4d (diff) | |
download | rspamd-c4073ae8c9ccb7b999b7a1b1d9e6507137c63255.tar.gz rspamd-c4073ae8c9ccb7b999b7a1b1d9e6507137c63255.zip |
[Minor] Disable shutdown workaround for HTTP
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |