public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: avoid failure of test536
Date: Tue, 03 Nov 2026 12:33:52 GMT	[thread overview]
Message-ID: <179370923274.1.5779667996632673695.rpms-curl-07747c9c9dae@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : 07747c9c9daec3f23e0dfc6d7f75f9a523e2d97e
Author : Kamil Dudka <kdudka@fedoraproject.org>
Date   : 2010-04-21T15:04:04+00:00
Stats  : +46/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/07747c9c9daec3f23e0dfc6d7f75f9a523e2d97e?branch=curl-v8.23.0-3

Log:
avoid failure of test536

---
diff --git a/curl-7.20.1-threaded-dns-multi.patch b/curl-7.20.1-threaded-dns-multi.patch
new file mode 100644
index 0000000..e7be86e
--- /dev/null
+++ b/curl-7.20.1-threaded-dns-multi.patch
@@ -0,0 +1,40 @@
+ lib/multi.c |   17 ++++++++++++++++-
+ 1 files changed, 16 insertions(+), 1 deletions(-)
+
+diff --git a/lib/multi.c b/lib/multi.c
+index 476cb81..74eb0f4 100644
+--- a/lib/multi.c
++++ b/lib/multi.c
+@@ -933,9 +933,16 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
+         easy->result = addHandleToSendOrPendPipeline(easy->easy_handle,
+                                                      easy->easy_conn);
+         if(CURLE_OK == easy->result) {
+-          if(async)
++          if(async) {
+             /* We're now waiting for an asynchronous name lookup */
+             multistate(easy, CURLM_STATE_WAITRESOLVE);
++#ifdef USE_THREADS_POSIX
++            /* Curl_resolv_getsock() is not properly implemented in case
++             * we use POSIX threaded DNS resolver, we have to hang */
++            result = CURLM_CALL_MULTI_PERFORM;
++            break;
++#endif
++          }
+           else {
+             /* after the connect has been sent off, go WAITCONNECT unless the
+                protocol connect is already done and we can go directly to
+@@ -1003,6 +1010,14 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
+         disconnect_conn = TRUE;
+         break;
+       }
++#ifdef USE_THREADS_POSIX
++      /* Curl_resolv_getsock() is not properly implemented yet in case
++       * we use POSIX threaded DNS resolver, we have to hang */
++      Curl_socket_ready(CURL_SOCKET_BAD, CURL_SOCKET_BAD, 100 /* ms */);
++      result = CURLM_CALL_MULTI_PERFORM;
++      break;
++#endif
++
+     }
+     break;
+ 

diff --git a/curl.spec b/curl.spec
index b6d2051..0f35ff7 100644
--- a/curl.spec
+++ b/curl.spec
@@ -7,6 +7,9 @@ Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
 Source2: curlbuild.h
 
+# experimentally enabled threaded DNS lookup
+Patch1: curl-7.20.1-threaded-dns-multi.patch
+
 # patch making libcurl multilib ready (by excluding static libraries)
 Patch101: curl-7.15.3-multilib.patch
 
@@ -95,6 +98,9 @@ for f in CHANGES README; do
     mv -f ${f}.utf8 ${f}
 done
 
+# upstream patches (not yet applied)
+%patch1 -p1
+
 # Fedora patches
 %patch101 -p1
 %patch102 -p1

                 reply	other threads:[~2026-11-03 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179370923274.1.5779667996632673695.rpms-curl-07747c9c9dae@fedoraproject.org \
    --to=kdudka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox