04f9886078d53b136f747484b3ad9e1f7fad5994 |
|
31-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Fixed max_buffer_size handling in istream-chain
The default max_buffer_size=256 was wrong in all situations.
We're now assuming that the underlying istreams' max_buffer_size is always
correct. While gluing together two streams we're now allocating enough
memory to hold all of the wanted data (instead of assert-crashing as could
have happened earlier). This means that the max memory usage is actually
the two streams' max_buffer_size summed together. Ideally this would be
fixed to limit the max_buffer_size to maximum of the two, but that would
require further changes. |
d295cff1b640240cd198b9c8e963c9116ab95510 |
|
15-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
istream-chain: Support using io_add_istream() for the chain stream.
The callback is notified whenever new streams are added to the chain.
It's currently not possible to have nonblocking istreams added to the chain
and the callback being called when they have new data, but it would be
possible to implement as well if needed at some point. |