diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-27 13:09:37 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-27 13:09:37 +0000 |
commit | 15b2a3af91b67073f14013542af14794f40c3a28 (patch) | |
tree | b164b6ec2e1fefffa24a98c344fde8d17e4e6ccf /lib | |
parent | 8358505b6daec39a5bf0937a8524488a4e284912 (diff) |
(Curl_GetFTPResponse) moved some code to only get performed when actually
needed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -235,11 +235,11 @@ int Curl_GetFTPResponse(char *buf, keepon=TRUE; while((nread<BUFSIZE) && (keepon && !error)) { - readfd = rkeepfd; /* set every lap */ - interval.tv_sec = timeout; - interval.tv_usec = 0; + if(!ftp->cache) { + 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 |