SHA256
1
0
forked from pool/curl

Accepting request 519550 from home:Zaitor:branches:devel:libraries:c_c++

- Add curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch:
  Fix NetworkManagers connectivity test.
- Add curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch:
  Fix NetworkManagers connectivity test.

OBS-URL: https://build.opensuse.org/request/show/519550
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=204
This commit is contained in:
Tomáš Chvátal 2017-08-30 08:02:52 +00:00 committed by Git OBS Bridge
parent 83de91c70c
commit 8ef60e6c2a
5 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,34 @@
From 74dac344b2feb2e0f4baddb70532dc8e45d2d817 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Fri, 18 Aug 2017 10:43:02 +0200
Subject: [PATCH] http: Don't wait on CONNECT when there is no proxy
Since curl 7.55.0, NetworkManager almost always failed its connectivity
check by timeout. I bisected this to 5113ad04 (http-proxy: do the HTTP
CONNECT process entirely non-blocking).
This patch replaces !Curl_connect_complete with Curl_connect_ongoing,
which returns false if the CONNECT state was left uninitialized and lets
the connection continue.
Closes #1803
Fixes #1804
Also-fixed-by: Gergely Nagy
---
lib/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/http.c b/lib/http.c
index 35c7c3d43f..3e33132783 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1371,7 +1371,7 @@ CURLcode Curl_http_connect(struct connectdata *conn, bool *done)
if(CONNECT_FIRSTSOCKET_PROXY_SSL())
return CURLE_OK; /* wait for HTTPS proxy SSL initialization to complete */
- if(!Curl_connect_complete(conn))
+ if(Curl_connect_ongoing(conn))
/* nothing else to do except wait right now - we're not done here. */
return CURLE_OK;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 29 17:33:29 UTC 2017 - zaitor@opensuse.org
- Add curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch:
Fix NetworkManagers connectivity test.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 28 16:15:30 UTC 2017 - schwab@suse.de Mon Aug 28 16:15:30 UTC 2017 - schwab@suse.de

View File

@ -51,6 +51,8 @@ Patch3: curl-disable-test1427-i586.patch
Patch4: curl-man3.patch Patch4: curl-man3.patch
# PATCH-FIX-UPSTREAM ppc-build.patch - Fix build for powerpc # PATCH-FIX-UPSTREAM ppc-build.patch - Fix build for powerpc
Patch5: ppc-build.patch Patch5: ppc-build.patch
# PATCH-FIX-UPSTREAM curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch -- Fix NetworkManagers connectivity test
Patch6: curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
%if !0%{?bootstrap} %if !0%{?bootstrap}
@ -134,6 +136,7 @@ user interaction or any kind of interactivity.
%patch3 -p1 -R %patch3 -p1 -R
%patch4 -p1 %patch4 -p1
%patch5 -p1 %patch5 -p1
%patch6 -p1
%build %build
# curl complains if macro definition is contained in CFLAGS # curl complains if macro definition is contained in CFLAGS

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 29 17:33:29 UTC 2017 - zaitor@opensuse.org
- Add curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch:
Fix NetworkManagers connectivity test.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 28 16:15:30 UTC 2017 - schwab@suse.de Mon Aug 28 16:15:30 UTC 2017 - schwab@suse.de

View File

@ -49,6 +49,8 @@ Patch3: curl-disable-test1427-i586.patch
Patch4: curl-man3.patch Patch4: curl-man3.patch
# PATCH-FIX-UPSTREAM ppc-build.patch - Fix build for powerpc # PATCH-FIX-UPSTREAM ppc-build.patch - Fix build for powerpc
Patch5: ppc-build.patch Patch5: ppc-build.patch
# PATCH-FIX-UPSTREAM curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch -- Fix NetworkManagers connectivity test
Patch6: curl-http-Don-t-wait-on-CONNECT-when-there-is-no-proxy.patch
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
%if !0%{?bootstrap} %if !0%{?bootstrap}
@ -132,6 +134,7 @@ user interaction or any kind of interactivity.
%patch3 -p1 -R %patch3 -p1 -R
%patch4 -p1 %patch4 -p1
%patch5 -p1 %patch5 -p1
%patch6 -p1
%build %build
# curl complains if macro definition is contained in CFLAGS # curl complains if macro definition is contained in CFLAGS