]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: Don't log write() errors that fail due to ECONNRESET
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 17 May 2022 07:05:20 +0000 (09:05 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 17 May 2022 15:17:24 +0000 (17:17 +0200)
These happen only if client initialization fails.

src/submission/main.c

index d335716dab183281afafb1870a857a810c1afb86..b854cb159682dc5a3e2d52929c90c7464d69550b 100644 (file)
@@ -107,7 +107,7 @@ send_error(int fd_out, const char *hostname, const char *error_code,
                "421 4.3.2 %s Shutting down due to fatal error\r\n",
                error_code, error_msg, hostname);
        if (write(fd_out, msg, strlen(msg)) < 0) {
-               if (errno != EAGAIN && errno != EPIPE)
+               if (errno != EAGAIN && errno != EPIPE && errno != ECONNRESET)
                        i_error("write(client) failed: %m");
        }
 }