aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c5
1 files changed, 5 insertions, 0 deletions
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);
}