From f2b05d8d3f212639e91a678e4d4cd0629bac5a69 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Nov 1998 06:21:02 +0000 Subject: Fix for timeout screw. svn path=/trunk/; revision=2213 --- driver.c | 8 ++++++-- 1 file 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) -- cgit v1.2.3