diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-07 19:58:54 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-07 19:58:54 +0300 |
commit | 15b079d79c99ed77b90ed510f9666612d518c5cc (patch) | |
tree | 62ea4c9399a3485cb27372cb5702d38b89c643fb /src/buffer.c | |
parent | 858b0619c4bf80caecb35d6f25427fe8ba642613 (diff) | |
download | rspamd-15b079d79c99ed77b90ed510f9666612d518c5cc.tar.gz rspamd-15b079d79c99ed77b90ed510f9666612d518c5cc.zip |
Release read lock lately.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index e647374c2..2413fbbeb 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -187,6 +187,9 @@ write_buffers (gint fd, rspamd_io_dispatcher_t * d, gboolean is_delayed) len = g_queue_get_length (d->out_buffers); if (len > 1) { /* IOV version */ + + /* Unset delayed as actually we HAVE buffers to write */ + is_delayed = TRUE; cur = d->out_buffers->tail; iov = g_slice_alloc (len * sizeof (struct iovec)); i = 0; |