diff options
author | Eray Aslan <eras@gentoo.org> | 2019-08-29 08:39:11 +0300 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2019-08-29 08:39:29 +0300 |
commit | d60cbaaa0a76ce52ffb67ee816a831e17bdc108e (patch) | |
tree | 0e3f2868d04b61abd547ee3b5e0138c52b069bc2 /net-mail/dovecot/files | |
parent | net-mail/dovecot: security bump bug 692572 (diff) | |
download | gentoo-d60cbaaa0a76ce52ffb67ee816a831e17bdc108e.tar.gz gentoo-d60cbaaa0a76ce52ffb67ee816a831e17bdc108e.tar.bz2 gentoo-d60cbaaa0a76ce52ffb67ee816a831e17bdc108e.zip |
net-mail/dovecot: cleanup
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Eray Aslan <eras@gentoo.org>
Diffstat (limited to 'net-mail/dovecot/files')
-rw-r--r-- | net-mail/dovecot/files/dovecot-no-log-error-tcp_nodelay.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/net-mail/dovecot/files/dovecot-no-log-error-tcp_nodelay.patch b/net-mail/dovecot/files/dovecot-no-log-error-tcp_nodelay.patch deleted file mode 100644 index 3a2acd74fb65..000000000000 --- a/net-mail/dovecot/files/dovecot-no-log-error-tcp_nodelay.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/src/lib/ostream-file.c b/src/lib/ostream-file.c -index e7e6f62d12..82bf729ac0 100644 ---- a/src/lib/ostream-file.c -+++ b/src/lib/ostream-file.c -@@ -333,17 +333,17 @@ static int buffer_flush(struct file_ostream *fstream) - static void o_stream_tcp_flush_via_nodelay(struct file_ostream *fstream) - { - if (net_set_tcp_nodelay(fstream->fd, TRUE) < 0) { -- if (errno != ENOTSUP && errno != ENOTSOCK && -- errno != ENOPROTOOPT) { -- i_error("file_ostream.net_set_tcp_nodelay(%s, TRUE) failed: %m", -- o_stream_get_name(&fstream->ostream.ostream)); -- } -+ /* Don't bother logging errors. There are quite a lot of -+ different errors that need to be ignored, and it differs -+ between OSes. At least: -+ Linux: ENOTSUP, ENOTSOCK, ENOPROTOOPT -+ FreeBSD: EINVAL, ECONNRESET */ - fstream->no_socket_nodelay = TRUE; - } else if (net_set_tcp_nodelay(fstream->fd, FALSE) < 0) { -- /* We already successfully enabled TCP_NODELAY, so we're really -- not expecting any errors here. */ -- i_error("file_ostream.net_set_tcp_nodelay(%s, FALSE) failed: %m", -- o_stream_get_name(&fstream->ostream.ostream)); -+ /* We already successfully enabled TCP_NODELAY, so there -+ shouldn't really be errors. Except ECONNRESET can possibly -+ still happen between these two calls, so again don't log -+ errors. */ - fstream->no_socket_nodelay = TRUE; - } - } |