]>
Commit | Line | Data |
---|---|---|
b639bf24 | 1 | --- lib/transfer.c Wed Sep 12 14:02:12 2001 |
2 | +++ lib/transfer.c.mis Sat Oct 27 15:28:06 2001 | |
3 | @@ -287,6 +287,7 @@ | |
4 | interval.tv_sec = 1; | |
5 | interval.tv_usec = 0; | |
6 | ||
7 | + start = Curl_tvnow(); | |
8 | switch (select (maxfd, &readfd, &writefd, NULL, &interval)) { | |
9 | case -1: /* select() error, stop reading */ | |
10 | #ifdef EINTR | |
11 | --- lib/ftp.c Mon Sep 24 14:37:19 2001 | |
12 | +++ lib/ftp.c.mis Sat Oct 27 15:49:30 2001 | |
13 | @@ -190,15 +190,9 @@ | |
14 | if (ftpcode) | |
15 | *ftpcode = 0; /* 0 for errors */ | |
16 | ||
17 | - if(data->set.timeout) { | |
18 | - /* if timeout is requested, find out how much remaining time we have */ | |
19 | - timeout = data->set.timeout - /* timeout time */ | |
20 | - (Curl_tvlong(Curl_tvnow()) - Curl_tvlong(conn->now)); /* spent time */ | |
21 | - if(timeout <=0 ) { | |
22 | - failf(data, "Transfer aborted due to timeout"); | |
23 | - return -SELECT_TIMEOUT; /* already too little time */ | |
24 | - } | |
25 | - } | |
26 | + if(data->set.timeout) | |
27 | + timeout = data->set.timeout; | |
28 | + | |
29 | ||
30 | FD_ZERO (&readfd); /* clear it */ | |
31 | FD_SET (sockfd, &readfd); /* read socket */ |