diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-08 17:39:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-08 17:39:57 +0000 |
commit | edf3105abadf663f6bd4995bf4a8063bd324dc39 (patch) | |
tree | 6f598aa64b99d6e5e13f00316886a743163239cf /src/controller.c | |
parent | ad75fd54534399c5964b43e5ee5c18ea0efdc41b (diff) | |
download | rspamd-edf3105abadf663f6bd4995bf4a8063bd324dc39.tar.gz rspamd-edf3105abadf663f6bd4995bf4a8063bd324dc39.zip |
Some fixes to buffered IO.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c index f8335b8ec..6c0480e62 100644 --- a/src/controller.c +++ b/src/controller.c @@ -235,7 +235,7 @@ restful_write_reply (gint error_code, const gchar *err_message, const gchar *buf r += rspamd_snprintf (hbuf + r, sizeof (hbuf) - r, CRLF); if (buf != NULL) { - if (!rspamd_dispatcher_write (d, hbuf, r, TRUE, FALSE)) { + if (!rspamd_dispatcher_write (d, hbuf, r, TRUE, TRUE)) { return FALSE; } return rspamd_dispatcher_write (d, buf, buflen, FALSE, FALSE); @@ -1353,7 +1353,6 @@ controller_read_socket (f_str_t * in, void *arg) else if (session->cmd != NULL) { if (! process_command (session->cmd, NULL, session)) { msg_debug ("process command failed"); - destroy_session (session->s); return FALSE; } } |