aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-26 06:21:02 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-26 06:21:02 +0000
commitf2b05d8d3f212639e91a678e4d4cd0629bac5a69 (patch)
tree9f00c599af37805e4585ba16976f66a6dee8f446 /driver.c
parent486ec5fc163d1d6d7d8b1f0023b3a137e060c6d7 (diff)
downloadfetchmail-f2b05d8d3f212639e91a678e4d4cd0629bac5a69.tar.gz
fetchmail-f2b05d8d3f212639e91a678e4d4cd0629bac5a69.tar.bz2
fetchmail-f2b05d8d3f212639e91a678e4d4cd0629bac5a69.zip
Fix for timeout screw.
svn path=/trunk/; revision=2213
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 32e08797..41eaa287 100644
--- a/driver.c
+++ b/driver.c
@@ -438,9 +438,13 @@ static int readheaders(int sock, long fetchlen, long reallen, struct query *ctl,
has_nuls = (linelen != strlen(line));
goto process_headers;
}
+
+ /* check for RFC822 continuations */
+ set_timeout(mytimeout);
+ ch = SockPeek(sock);
+ set_timeout(0);
} while
- /* we may need to grab RFC822 continuations */
- ((ch = SockPeek(sock)) == ' ' || ch == '\t');
+ (ch == ' ' || ch == '\t'); /* continuation to next line? */
/* write the message size dots */
if ((outlevel > O_SILENT && outlevel < O_VERBOSE) && linelen > 0)