From: Aki Tuomi Date: Mon, 14 Oct 2019 09:28:46 +0000 (+0300) Subject: doveadm: Do not block fd after command X-Git-Tag: 2.3.9~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61734c9cf3229befdd38ef9fb948bbe551aeb585;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Do not block fd after command It is not useful and breaks SSL --- diff --git a/src/doveadm/client-connection-tcp.c b/src/doveadm/client-connection-tcp.c index af70b5eb74..d7bb131ebb 100644 --- a/src/doveadm/client-connection-tcp.c +++ b/src/doveadm/client-connection-tcp.c @@ -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; }