[Dovecot] 1.0-test26

Timo Sirainen tss at iki.fi
Fri Jul 9 02:19:52 EEST 2004


On Fri, 2004-07-09 at 02:07, Matthew Reimer wrote:
> >>>  - Fixed APPEND hanging if the whole message was sent in one TCP packet
> >>> (ie. fixes the "Sent mail" hangs)
..
> > It reads all of it into buffer, then later tries to read more even 
> > though everything was already in that buffer so it gets stuck at 
> > waiting. Dovecot's istream-limit wrapper stream specifically was a 
> > problem. It called parent stream's read() function without checking 
> > first if there was already data in it's buffer.
> > 
> Is this a problem in 0.99 as well?

No, I don't think so. 0.99 didn't have wrapper streams, limits (eg. read
only up to X bytes) were set to input stream directly, which made
wrapper streams very complex to implement.

Wrapper streams make things pretty neat. It's possible to implement for
example gzip or bzip2 wrapper streams for mboxes quite easily as a
plugin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20040709/828673da/attachment-0001.bin>


More information about the dovecot mailing list