aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-21 10:18:58 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-21 10:18:58 +0000
commitb5eac88eceb211ef46470ef2c5e414134c088410 (patch)
treed890b3c1cfc275bfc2ce31372f92a0f1990378d8 /socket.c
parent5c55d8e17c7800553b3a49bdf75c6cf48421ea8f (diff)
downloadfetchmail-b5eac88eceb211ef46470ef2c5e414134c088410.tar.gz
fetchmail-b5eac88eceb211ef46470ef2c5e414134c088410.tar.bz2
fetchmail-b5eac88eceb211ef46470ef2c5e414134c088410.zip
Emergency buffering removal.
svn path=/trunk/; revision=669
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);
}