]> git.pld-linux.org Git - packages/curl.git/blob - curl-readtimeout-fix.patch
- update to 7.9.1
[packages/curl.git] / curl-readtimeout-fix.patch
1 diff -Nru curl-7.9.1.org/lib/ftp.c curl-7.9.1/lib/ftp.c
2 --- curl-7.9.1.org/lib/ftp.c    Thu Nov  1 13:47:22 2001
3 +++ curl-7.9.1/lib/ftp.c        Sun Nov  4 20:24:56 2001
4 @@ -200,15 +200,8 @@
5    if (ftpcode)
6      *ftpcode = 0; /* 0 for errors */
7  
8 -  if(data->set.timeout) {
9 -    /* if timeout is requested, find out how much remaining time we have */
10 -    timeout = data->set.timeout - /* timeout time */
11 -      Curl_tvdiff(Curl_tvnow(), conn->now)/1000; /* spent time */
12 -    if(timeout <=0 ) {
13 -      failf(data, "Transfer aborted due to timeout");
14 -      return -SELECT_TIMEOUT; /* already too little time */
15 -    }
16 -  }
17 +  if(data->set.timeout)
18 +    timeout = data->set.timeout;
19  
20    FD_ZERO (&readfd);           /* clear it */
21    FD_SET (sockfd, &readfd);     /* read socket */
22 diff -Nru curl-7.9.1.org/lib/transfer.c curl-7.9.1/lib/transfer.c
23 --- curl-7.9.1.org/lib/transfer.c       Sat Nov  3 00:09:39 2001
24 +++ curl-7.9.1/lib/transfer.c   Sun Nov  4 20:22:11 2001
25 @@ -284,7 +284,7 @@
26        writefd = wkeepfd;
27        interval.tv_sec = 1;
28        interval.tv_usec = 0;
29 -
30 +      start = Curl_tvnow();
31        switch (select (maxfd, &readfd, &writefd, NULL, &interval)) {
32        case -1:                 /* select() error, stop reading */
33  #ifdef EINTR
This page took 0.052173 seconds and 3 git commands to generate.