Loading lib/telnet.c +11 −9 Original line number Original line Diff line number Diff line Loading @@ -872,7 +872,7 @@ CURLcode Curl_telnet(struct connectdata *conn) } } } } if(FD_ISSET(sockfd, &readfd)) if(FD_ISSET(sockfd, &readfd)) { Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); /* if we receive 0 or less here, the server closed the connection and /* if we receive 0 or less here, the server closed the connection and Loading @@ -885,7 +885,9 @@ CURLcode Curl_telnet(struct connectdata *conn) telrcv(data, (unsigned char *)buf, nread); telrcv(data, (unsigned char *)buf, nread); } } } } return CURLE_OK; } /* mark this as "no further transfer wanted" */ return Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL); } } lib/transfer.c +6 −0 Original line number Original line Diff line number Diff line Loading @@ -161,6 +161,12 @@ _Transfer(struct connectdata *c_conn) Curl_pgrsTime(data, TIMER_PRETRANSFER); Curl_pgrsTime(data, TIMER_PRETRANSFER); Curl_speedinit(data); Curl_speedinit(data); if((conn->sockfd == -1) && (conn->writesockfd == -1)) { /* nothing to read, nothing to write, we're already OK! */ return CURLE_OK; } if (!conn->getheader) { if (!conn->getheader) { header = FALSE; header = FALSE; if(conn->size > 0) if(conn->size > 0) Loading Loading
lib/telnet.c +11 −9 Original line number Original line Diff line number Diff line Loading @@ -872,7 +872,7 @@ CURLcode Curl_telnet(struct connectdata *conn) } } } } if(FD_ISSET(sockfd, &readfd)) if(FD_ISSET(sockfd, &readfd)) { Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); /* if we receive 0 or less here, the server closed the connection and /* if we receive 0 or less here, the server closed the connection and Loading @@ -885,7 +885,9 @@ CURLcode Curl_telnet(struct connectdata *conn) telrcv(data, (unsigned char *)buf, nread); telrcv(data, (unsigned char *)buf, nread); } } } } return CURLE_OK; } /* mark this as "no further transfer wanted" */ return Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL); } }
lib/transfer.c +6 −0 Original line number Original line Diff line number Diff line Loading @@ -161,6 +161,12 @@ _Transfer(struct connectdata *c_conn) Curl_pgrsTime(data, TIMER_PRETRANSFER); Curl_pgrsTime(data, TIMER_PRETRANSFER); Curl_speedinit(data); Curl_speedinit(data); if((conn->sockfd == -1) && (conn->writesockfd == -1)) { /* nothing to read, nothing to write, we're already OK! */ return CURLE_OK; } if (!conn->getheader) { if (!conn->getheader) { header = FALSE; header = FALSE; if(conn->size > 0) if(conn->size > 0) Loading