From 15b2a3af91b67073f14013542af14794f40c3a28 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 27 Apr 2002 13:09:37 +0000 Subject: (Curl_GetFTPResponse) moved some code to only get performed when actually needed --- lib/ftp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index e3e630d62..47bdcb751 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -235,11 +235,11 @@ int Curl_GetFTPResponse(char *buf, keepon=TRUE; while((nreadcache) { + readfd = rkeepfd; /* set every lap */ + interval.tv_sec = timeout; + interval.tv_usec = 0; - if(!ftp->cache) switch (select (sockfd+1, &readfd, NULL, NULL, &interval)) { case -1: /* select() error, stop reading */ error = SELECT_ERROR; @@ -253,6 +253,7 @@ int Curl_GetFTPResponse(char *buf, error = SELECT_OK; break; } + } if(SELECT_OK == error) { /* * This code previously didn't use the kerberos sec_read() code -- cgit v1.2.3