Skip to content

Commit

Permalink
hack, otherwise decompression gets stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Sep 23, 2024
1 parent f89a42f commit bc2f64c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/imap_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ impl<R: Read + Write + Unpin> Stream for ImapStream<R> {
}
loop {
this.buffer.ensure_capacity(this.decode_needs)?;
this.buffer.ensure_capacity(64 * 1024)?; // FIXME: match the size needed for
// decompression
let buf = this.buffer.free_as_mut_slice();

// The buffer should have at least one byte free
Expand Down

0 comments on commit bc2f64c

Please sign in to comment.