]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't try to cork files.
authorTimo Sirainen <tss@iki.fi>
Sat, 17 May 2003 09:08:10 +0000 (12:08 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 17 May 2003 09:08:10 +0000 (12:08 +0300)
--HG--
branch : HEAD

src/lib/ostream-file.c

index 4b7a4741858126aac6dc7aaac7c61d4e4328a254..f1abe40d8f3d9510c0bf254c4eba3a5c14f4756c 100644 (file)
@@ -882,9 +882,12 @@ o_stream_create_file(int fd, pool_t pool, size_t max_buffer_size,
                   don't bother to even try with them. */
                fstream->no_sendfile = TRUE;
 #endif
+               fstream->no_socket_cork = FALSE;
        } else {
-               if (net_getsockname(fd, NULL, NULL) < 0)
+               if (net_getsockname(fd, NULL, NULL) < 0) {
                        fstream->no_sendfile = TRUE;
+                       fstream->no_socket_cork = FALSE;
+               }
        }
        return ostream;
 }