From 950350966b07d1f121f4cf50a2704f1a65dc4b38 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 21 Dec 1996 10:26:34 +0000 Subject: Correct a horrible bug. svn path=/trunk/; revision=670 --- socket.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 6af77ef3..9bfc5485 100644 --- a/socket.c +++ b/socket.c @@ -76,7 +76,12 @@ FILE *sockopen(char *host, int clientPort) fp = fdopen(sock, "r+"); #ifdef FOO - /* for unknown reasons, this results in horrible lossage */ + /* + * For unknown reasons, this results in horrible lossage. + * To see this, condition in this line, generate a test pattern + * of 8K, fetch it, and watch it garble the test pattern. + * I think there's a bug in stdio lurking here. + */ setvbuf(fp, sbuf, _IOLBF, INTERNAL_BUFSIZE); #endif /* FOO */ -- cgit v1.2.3