event_add (d->ev, d->tv);
return TRUE;
}
+ len = d->out_buffers.pending;
}
if (d->out_buffers.pending == 0) {
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);
else if (session->cmd != NULL) {
if (! process_command (session->cmd, NULL, session)) {
msg_debug ("process command failed");
- destroy_session (session->s);
return FALSE;
}
}