Skip to content

Commit

Permalink
[Minor] Update ev_now after logging is done
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 11, 2019
1 parent c539153 commit 5bff64b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libserver/protocol.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5bff64b

Please sign in to comment.