]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - Use o_stream_set_finish_via_child(FALSE)
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 31 Oct 2017 15:09:47 +0000 (17:09 +0200)
committerTimo Sirainen <tss@dovecot.fi>
Wed, 1 Nov 2017 00:22:19 +0000 (02:22 +0200)
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.

src/lib/connection.c

index d5cfb8aebe7ab22122eee5d1ec1493cd770865f3..f0a8c82fdd2eb8796894e0f7160226c9fa4936b9 100644 (file)
@@ -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) {