On 30-12-13 22:43, Aleksander Dezhin wrote:
> I have attached to this letter and dbmail (with logging level set to
> 255) logs imapproxy. I only managed to establish that the timeout after
> which 3.1.8 resets the connection is around 20 seconds. Maybe someone
> will help to understand what it is...
Aleksander,
please try the attached patch.
--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
* Premium Hosting Services and Web Application Consultancy *
www.nfg.nl/[email protected]/+31.85.877.99.97
________________________________________________________________
>From afb1d1949e7bb9849e0fe33e4d3ae971711337bd Mon Sep 17 00:00:00 2001
From: Paul J Stevens <[email protected]>
Date: Wed, 1 Jan 2014 10:55:47 +0100
Subject: IMAP: defer bailout in case of EOF
---
src/imap4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/imap4.c b/src/imap4.c
index 364837d..a93c2a2 100644
--- a/src/imap4.c
+++ b/src/imap4.c
@@ -209,7 +209,7 @@ void imap_cb_read(void *arg)
uint64_t have = p_string_len(session->ci->read_buffer);
uint64_t need = session->ci->rbuff_size;
- int enough = (need>0?(have >= need):(have > 0));
+ int enough = (need>0?(have >= need):(have >= 0));
int state = session->ci->client_state;
TRACE(TRACE_DEBUG,"state [%d] enough %d: %" PRIu64 "/%" PRIu64 "", state, enough, have, need);
--
1.7.10.4
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail