Blame SOURCES/0003-curl-7.29.0-491e026c.patch
|
|
3a27f0 |
From a2e6eadf6a72f7587eb9bc1ad52383e4c5507b12 Mon Sep 17 00:00:00 2001
|
|
|
3a27f0 |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
3a27f0 |
Date: Mon, 11 Mar 2013 16:57:25 +0100
|
|
|
3a27f0 |
Subject: [PATCH 1/2] easy: do not ignore poll() failures other than EINTR
|
|
|
3a27f0 |
|
|
|
3a27f0 |
[upstream commit 491e026ccda0e60975fa6e2e9cf3ccca37e18f7b]
|
|
|
3a27f0 |
---
|
|
|
3a27f0 |
lib/easy.c | 12 ++++++++++--
|
|
|
3a27f0 |
1 files changed, 10 insertions(+), 2 deletions(-)
|
|
|
3a27f0 |
|
|
|
3a27f0 |
diff --git a/lib/easy.c b/lib/easy.c
|
|
|
3a27f0 |
index c27deff..2e747bb 100644
|
|
|
3a27f0 |
--- a/lib/easy.c
|
|
|
3a27f0 |
+++ b/lib/easy.c
|
|
|
3a27f0 |
@@ -441,11 +441,19 @@ CURLcode curl_easy_perform(CURL *easy)
|
|
|
3a27f0 |
|
|
|
3a27f0 |
while(!done && !mcode) {
|
|
|
3a27f0 |
int still_running;
|
|
|
3a27f0 |
+ int ret;
|
|
|
3a27f0 |
|
|
|
3a27f0 |
- mcode = curl_multi_wait(multi, NULL, 0, 1000, NULL);
|
|
|
3a27f0 |
+ mcode = curl_multi_wait(multi, NULL, 0, 1000, &ret;;
|
|
|
3a27f0 |
+
|
|
|
3a27f0 |
+ if(mcode == CURLM_OK) {
|
|
|
3a27f0 |
+ if(ret == -1) {
|
|
|
3a27f0 |
+ /* poll() failed not on EINTR, indicate a network problem */
|
|
|
3a27f0 |
+ code = CURLE_RECV_ERROR;
|
|
|
3a27f0 |
+ break;
|
|
|
3a27f0 |
+ }
|
|
|
3a27f0 |
|
|
|
3a27f0 |
- if(mcode == CURLM_OK)
|
|
|
3a27f0 |
mcode = curl_multi_perform(multi, &still_running);
|
|
|
3a27f0 |
+ }
|
|
|
3a27f0 |
|
|
|
3a27f0 |
/* only read 'still_running' if curl_multi_perform() return OK */
|
|
|
3a27f0 |
if((mcode == CURLM_OK) && !still_running) {
|
|
|
3a27f0 |
--
|
|
|
3a27f0 |
1.7.1
|
|
|
3a27f0 |
|