changeset 1476:6e2806114f44 HEAD

Don't try to cork files.
author Timo Sirainen <tss@iki.fi>
date Sat, 17 May 2003 12:08:10 +0300
parents 474e4b205af7
children 280e6d3772c9
files src/lib/ostream-file.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/ostream-file.c	Fri May 16 20:14:54 2003 +0300
+++ b/src/lib/ostream-file.c	Sat May 17 12:08:10 2003 +0300
@@ -882,9 +882,12 @@
 		   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;
 }