diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-11-26 06:21:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-11-26 06:21:02 +0000 |
commit | f2b05d8d3f212639e91a678e4d4cd0629bac5a69 (patch) | |
tree | 9f00c599af37805e4585ba16976f66a6dee8f446 /driver.c | |
parent | 486ec5fc163d1d6d7d8b1f0023b3a137e060c6d7 (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |