Kamil Dudka wrote: > Maybe we should commit the change you suggest also upstream in order to > improve the debugging experience of binary releases?
Yes, unless this attached patch fixes it. Please test it at your convenience. -- Björn
>From 2c0328f28182cb0bd3632654f85d9cefcd877c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= <bj...@haxx.se> Date: Wed, 30 Oct 2013 21:19:57 +0100 Subject: [PATCH] bugfix: Check and clear all errors, irrespective of socket mask. Bug: http://curl.haxx.se/mail/lib-2013-10/0261.html Reported-by: Kamil Dudka --- lib/connect.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/connect.c b/lib/connect.c index 2cf1fc0..6102567 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -788,13 +788,10 @@ CURLcode Curl_is_connected(struct connectdata *conn, infof(data, "Connection failed\n"); break; - case CURL_CSELECT_ERR|CURL_CSELECT_OUT: - (void)verifyconnect(conn->tempsock[i], &error); - break; - default: - infof(data, "Whut?\n"); - return CURLE_OK; + if(result & CURL_CSELECT_ERR) + (void)verifyconnect(conn->tempsock[i], &error); + break; } /* -- 1.7.10.4
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html