]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: ostream-file - Ignore ENOPROTOOPT error also when setting TCP_NODELAY
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 17 May 2019 13:13:17 +0000 (16:13 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 17 May 2019 13:15:11 +0000 (16:15 +0300)
This happens in some OSes.

src/lib/ostream-file.c

index ba6bbb17008644bbba5160ed0c4b5085b36f1d79..5456f39bfc2497af73b1e9ea5c46d82ea44d52c1 100644 (file)
@@ -333,7 +333,8 @@ 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) {
+               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));
                }