dovecot-2.0: lmtp proxy: Fixed output timeout handling.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Dec 7 22:06:33 EET 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/abe02cf3bd47
changeset: 10421:abe02cf3bd47
user: Timo Sirainen <tss at iki.fi>
date: Mon Dec 07 15:06:27 2009 -0500
description:
lmtp proxy: Fixed output timeout handling.
diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
src/lmtp/lmtp-proxy.c | 5 +++--
diffs (22 lines):
diff -r 7330a21e7d03 -r abe02cf3bd47 src/lmtp/lmtp-proxy.c
--- a/src/lmtp/lmtp-proxy.c Mon Dec 07 14:44:00 2009 -0500
+++ b/src/lmtp/lmtp-proxy.c Mon Dec 07 15:06:27 2009 -0500
@@ -296,7 +296,7 @@ int lmtp_proxy_add_rcpt(struct lmtp_prox
return 0;
}
-static size_t lmtp_proxy_find_lowest_offset(struct lmtp_proxy *proxy)
+static uoff_t lmtp_proxy_find_lowest_offset(struct lmtp_proxy *proxy)
{
struct lmtp_proxy_connection *const *conns;
uoff_t min_offset = (uoff_t)-1;
@@ -305,7 +305,8 @@ static size_t lmtp_proxy_find_lowest_off
struct lmtp_proxy_connection *conn = *conns;
if (conn->data_input != NULL &&
- min_offset > conn->data_input->v_offset)
+ min_offset > conn->data_input->v_offset &&
+ i_stream_have_bytes_left(conn->data_input))
min_offset = conn->data_input->v_offset;
}
return min_offset;
More information about the dovecot-cvs
mailing list