aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-10 22:44:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-10 22:44:08 +0000
commitb19cba20168ce785ec01e14de9638c2a198a8527 (patch)
tree0c645ce41dac465c362648304c4f2ca0f104edea
parent315a9c95d51fcadc11e237826a67aecb6fdc076b (diff)
If Curl_select() returns with the error bit set, bail out.
-rw-r--r--lib/transfer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 305b0768b..5ba478a8e 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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