Skip to content

Commit

Permalink
If Curl_select() returns with the error bit set, bail out.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed May 10, 2005
1 parent 315a9c9 commit b19cba2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/transfer.c
Expand Up @@ -287,6 +287,11 @@ CURLcode Curl_readwrite(struct connectdata *conn,
fd_write = CURL_SOCKET_BAD;

select_res = Curl_select(fd_read, fd_write, 0);
if(select_res & CSELECT_ERR) {
failf(data, "select/poll returned error: %s",
Curl_strerror(conn, Curl_ourerrno()));
return CURLE_SEND_ERROR;
}

do {
/* If we still have reading to do, we check if we have a readable
Expand Down

0 comments on commit b19cba2

Please sign in to comment.