[tpop3d-discuss]Corrupted TOP response with PIPELINING and tpop3d
1.5.3
Martin Blapp
mb at imp.ch
Wed, 2 Feb 2005 22:19:01 +0100 (CET)
Hi,
> oh -- the test mailbox only had about 500 mails in it.
500 Mails are still ok, you need at least 1500 mails to
trigger the bug.
> - *len = B->len - B->put;
> +
> + if (B->put >= B->get) {
> + *len = B->len - B->put;
> + if (B->get == 0)
> + --*len;
> + } else if (B->put < B->get) {
> + *len = B->get - B->put - 1;
> + }
> +
> return B->buf + B->put;
> }
Yep - seems to work - I don't see the truncation anymore,
but something does still not work. Maybe I'm running into
a timeout.
Martin