Skip to content

Commit

Permalink
lib: Don't set ostream buffer as blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed May 18, 2016
1 parent 25ec868 commit a067446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/ostream-buffer.c
Expand Up @@ -59,7 +59,9 @@ struct ostream *o_stream_create_buffer(buffer_t *buf)
struct ostream *output;

bstream = i_new(struct buffer_ostream, 1);
bstream->ostream.ostream.blocking = TRUE;
/* we don't set buffer as blocking, because if max_buffer_size is
changed it can get truncated. this is used in various places in
unit tests. */
bstream->ostream.max_buffer_size = (size_t)-1;
bstream->ostream.seek = o_stream_buffer_seek;
bstream->ostream.sendv = o_stream_buffer_sendv;
Expand Down

0 comments on commit a067446

Please sign in to comment.