From b5eac88eceb211ef46470ef2c5e414134c088410 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 21 Dec 1996 10:18:58 +0000 Subject: Emergency buffering removal. svn path=/trunk/; revision=669 --- socket.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index ddbf2f93..6af77ef3 100644 --- a/socket.c +++ b/socket.c @@ -74,7 +74,12 @@ FILE *sockopen(char *host, int clientPort) return (FILE *)NULL; } fp = fdopen(sock, "r+"); + +#ifdef FOO + /* for unknown reasons, this results in horrible lossage */ setvbuf(fp, sbuf, _IOLBF, INTERNAL_BUFSIZE); +#endif /* FOO */ + return(fp); } -- cgit v1.2.3