1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

clearly tell that these are ftp response timeouts

This commit is contained in:
Daniel Stenberg 2004-03-05 09:37:48 +00:00
parent 2cd6403011
commit ef0a2c714b

View File

@ -266,7 +266,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
Curl_tvdiff(Curl_tvnow(), now)/1000; /* spent time */
if(timeout <=0 ) {
failf(data, "Transfer aborted due to timeout");
failf(data, "FTP response timeout");
return CURLE_OPERATION_TIMEDOUT; /* already too little time */
}
@ -278,7 +278,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
switch (select (sockfd+1, &readfd, NULL, NULL, &interval)) {
case -1: /* select() error, stop reading */
result = CURLE_RECV_ERROR;
failf(data, "Transfer aborted due to select() error: %d", errno);
failf(data, "FTP response aborted due to select() error: %d", errno);
break;
case 0: /* timeout */
if(Curl_pgrsUpdate(conn))