Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9546:6c9f2ed821df HEAD
Disabled stats istream. It's not used by default, and it breaks mbox.
When stats istream is enabled, reading a mail with a huge header from mbox
causes Dovecot to eat all CPU for a long time. This bug is fixed properly in
v2.0.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 28 Feb 2010 16:20:46 +0200 |
parents | 93ee1f7bfeff |
children | 578dcf893777 |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Sat Feb 20 05:55:10 2010 +0200 +++ b/src/lib-storage/index/index-mail.c Sun Feb 28 16:20:46 2010 +0200 @@ -824,17 +824,19 @@ struct istream **stream_r) { struct index_mail_data *data = &mail->data; - struct istream *input; int ret; +#if 0 if (!data->initialized_wrapper_stream && mail->mail.stats_track) { + struct istream *input; + input = i_stream_create_mail_stats_counter(&mail->mail, data->stream); i_stream_unref(&data->stream); data->stream = input; data->initialized_wrapper_stream = TRUE; } - +#endif i_stream_set_destroy_callback(data->stream, index_mail_stream_destroy_callback, mail);