diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 17:45:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 17:45:36 +0100 |
commit | 5bff64bcd521d80c899254c0a5b030699ce2f2f4 (patch) | |
tree | 083ff7ed2d2eeb292ac9124f93ec0ca91a79db36 /src/libserver/protocol.c | |
parent | c53915391243bae6b55a0c6f8acc78b3361f2fb0 (diff) | |
download | rspamd-5bff64bcd521d80c899254c0a5b030699ce2f2f4.tar.gz rspamd-5bff64bcd521d80c899254c0a5b030699ce2f2f4.zip |
[Minor] Update ev_now after logging is done
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index da02eb61b..0786f4860 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -2013,9 +2013,6 @@ rspamd_protocol_write_reply (struct rspamd_task *task, ev_tstamp timeout) msg->flags |= RSPAMD_HTTP_FLAG_SPAMC; } - ev_now_update (task->event_loop); - msg->date = ev_time (); - if (task->err != NULL) { msg_debug_protocol ("writing error reply to client"); ucl_object_t *top = NULL; @@ -2057,6 +2054,9 @@ rspamd_protocol_write_reply (struct rspamd_task *task, ev_tstamp timeout) } } + ev_now_update (task->event_loop); + msg->date = ev_time (); + rspamd_http_connection_reset (task->http_conn); rspamd_http_connection_write_message (task->http_conn, msg, NULL, ctype, task, timeout); |