]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Do not block fd after command
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 14 Oct 2019 09:28:46 +0000 (12:28 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 16 Oct 2019 09:14:06 +0000 (12:14 +0300)
It is not useful and breaks SSL

src/doveadm/client-connection-tcp.c

index af70b5eb744087969e3dab3f089bba38e43970ed..d7bb131ebb82f0275621896e7203cb961d717805 100644 (file)
@@ -420,10 +420,8 @@ static bool client_handle_command(struct client_connection_tcp *conn,
        conn->io = io_add_istream(conn->input, client_connection_tcp_input, conn);
        client_connection_set_proctitle(&conn->conn, "");
 
-       /* flush the output and possibly run next command */
-       net_set_nonblock(conn->fd, FALSE);
+       /* Try to flush the output. It might finish later. */
        (void)o_stream_flush(conn->output);
-       net_set_nonblock(conn->fd, TRUE);
        return TRUE;
 }