public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: avoid unnecessary timeout event when waiting for 100-continue (#767490)
Date: Tue, 03 Nov 2026 12:34:36 GMT	[thread overview]
Message-ID: <179370927682.1.7446724372481321664.rpms-curl-6322c91cccd0@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : 6322c91cccd0950dc6aa559658823b160d92bf7f
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2011-12-25T23:38:33+01:00
Stats  : +40/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/6322c91cccd0950dc6aa559658823b160d92bf7f?branch=curl-v8.23.0-3

Log:
avoid unnecessary timeout event when waiting for 100-continue (#767490)

---
diff --git a/0002-curl-7.23.0-9f7f6a6.patch b/0002-curl-7.23.0-9f7f6a6.patch
new file mode 100644
index 0000000..f653d72
--- /dev/null
+++ b/0002-curl-7.23.0-9f7f6a6.patch
@@ -0,0 +1,32 @@
+From a8063d1e74cd86d0bbabee87aa57e660a08aca62 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Sun, 25 Dec 2011 22:37:24 +0100
+Subject: [PATCH] transfer: avoid unnecessary timeout event when waiting for 100-continue
+
+The commit 9dd85bc unintentionally changed the way we compute the time
+spent waiting for 100-continue.  In particular, when using a SSL client
+certificate, the time spent by SSL handshake was included and could
+cause the CURL_TIMEOUT_EXPECT_100 timeout to be mistakenly fired up.
+
+Bug: https://bugzilla.redhat.com/767490
+Reported by: Mamoru Tasaka
+---
+ lib/transfer.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/lib/transfer.c b/lib/transfer.c
+index e56fffd..3d82571 100644
+--- a/lib/transfer.c
++++ b/lib/transfer.c
+@@ -2364,7 +2364,7 @@ Curl_setup_transfer(
+          (data->state.proto.http->sending == HTTPSEND_BODY)) {
+         /* wait with write until we either got 100-continue or a timeout */
+         k->exp100 = EXP100_AWAITING_CONTINUE;
+-        k->start100 = k->start;
++        k->start100 = Curl_tvnow();
+ 
+         /* set a timeout for the multi interface */
+         Curl_expire(data, CURL_TIMEOUT_EXPECT_100);
+-- 
+1.7.1
+

diff --git a/curl.spec b/curl.spec
index 0c28a4f..2dd2ba8 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,7 +1,7 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 7.23.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@@ -11,6 +11,9 @@ Source3: hide_selinux.c
 # -J -O: use -O name if no Content-Disposition header comes!
 Patch1: 0001-curl-7.23.0-c532604.patch
 
+# transfer: avoid unnecessary timeout event when waiting for 100-continue
+Patch2: 0002-curl-7.23.0-9f7f6a6.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.21.1-multilib.patch
 
@@ -111,6 +114,7 @@ done
 
 # upstream patches
 %patch1 -p1
+%patch2 -p1
 
 # Fedora patches
 %patch101 -p1
@@ -224,6 +228,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Sun Dec 25 2011 Kamil Dudka <kdudka@redhat.com> 7.23.0-3
+- avoid unnecessary timeout event when waiting for 100-continue (#767490)
+
 * Mon Nov 21 2011 Kamil Dudka <kdudka@redhat.com> 7.23.0-2
 - curl -JO now uses -O name if no C-D header comes (upstream commit c532604)
 

                 reply	other threads:[~2026-11-03 12:34 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=179370927682.1.7446724372481321664.rpms-curl-6322c91cccd0@fedoraproject.org \
    --to=kdudka@redhat.com \
    --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