]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: ostream-file - Use TCP_NODELAY when uncorking, not corking
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 May 2019 13:33:30 +0000 (16:33 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 21 May 2019 09:03:55 +0000 (09:03 +0000)
src/lib/ostream-file.c

index fcfc8b9090792b88e35e678bb2e2b6eecf4c16b3..e7e6f62d127c43fcaeddf875d260ad5f2a74a8c8 100644 (file)
@@ -381,7 +381,7 @@ static void o_stream_file_cork(struct ostream_private *stream, bool set)
                                fstream->no_socket_cork = TRUE;
                        fstream->socket_cork_set = FALSE;
                }
-               if (set && !fstream->no_socket_nodelay) {
+               if (!set && !fstream->no_socket_nodelay) {
                        /* Uncorking - send all the pending data immediately.
                           Remove nodelay immediately afterwards, so if any
                           output is sent outside corking it may get delayed. */