diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-21 10:26:34 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-21 10:26:34 +0000 |
commit | 950350966b07d1f121f4cf50a2704f1a65dc4b38 (patch) | |
tree | e20caf13502b92cb558945c3b06b75b62813ecc4 /socket.c | |
parent | b5eac88eceb211ef46470ef2c5e414134c088410 (diff) | |
download | fetchmail-950350966b07d1f121f4cf50a2704f1a65dc4b38.tar.gz fetchmail-950350966b07d1f121f4cf50a2704f1a65dc4b38.tar.bz2 fetchmail-950350966b07d1f121f4cf50a2704f1a65dc4b38.zip |
Correct a horrible bug.
svn path=/trunk/; revision=670
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 */ |