From: Timo Sirainen Date: Tue, 31 Oct 2017 15:09:47 +0000 (+0200) Subject: lib: connection - Use o_stream_set_finish_via_child(FALSE) X-Git-Tag: 2.3.0.rc1~669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a4a0ef8264d95ffb2ba8f6f109f94ea7f3454e8;p=thirdparty%2Fdovecot%2Fcore.git lib: connection - Use o_stream_set_finish_via_child(FALSE) This allows o_stream_finish() calls on child streams without closing this parent stream. Since the stream has no error checking by default anyway, this allows the connection stream to be used more easily. --- diff --git a/src/lib/connection.c b/src/lib/connection.c index d5cfb8aebe..f0a8c82fdd 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -151,6 +151,7 @@ static void connection_init_streams(struct connection *conn) conn->output = o_stream_create_fd(conn->fd_out, set->output_max_size); o_stream_set_no_error_handling(conn->output, TRUE); + o_stream_set_finish_via_child(conn->output, FALSE); o_stream_set_name(conn->output, conn->name); } if (set->input_idle_timeout_secs != 0) {