public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.23.0-3: - update polling patch to the latest upstream version
@ 2026-11-03 12:33 Kamil Dudka
  0 siblings, 0 replies; only message in thread
From: Kamil Dudka @ 2026-11-03 12:33 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : 8ffd2e2b77a1658b7a54e277e28e264581706ebc
Author : Kamil Dudka <kdudka@fedoraproject.org>
Date   : 2009-09-16T14:46:47+00:00
Stats  : +67/-14 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/8ffd2e2b77a1658b7a54e277e28e264581706ebc?branch=curl-v8.23.0-3

Log:
- update polling patch to the latest upstream version

---
diff --git a/curl-7.19.6-poll.patch b/curl-7.19.6-poll.patch
index 759cc02..93d5a94 100644
--- a/curl-7.19.6-poll.patch
+++ b/curl-7.19.6-poll.patch
@@ -1,7 +1,53 @@
 diff -rup curl-7.19.6.orig/lib/ssh.c curl-7.19.6/lib/ssh.c
 --- curl-7.19.6.orig/lib/ssh.c	2009-07-25 00:21:50.000000000 +0200
-+++ curl-7.19.6/lib/ssh.c	2009-09-02 15:43:13.337644271 +0200
-@@ -2235,10 +2235,10 @@ static int ssh_perform_getsock(const str
++++ curl-7.19.6/lib/ssh.c	2009-09-16 16:25:59.271054546 +0200
+@@ -1503,6 +1503,9 @@ static CURLcode ssh_statemach_act(struct
+     result = Curl_setup_transfer(conn, -1, -1, FALSE, NULL,
+                                  FIRSTSOCKET, NULL);
+ 
++    /* not set by Curl_setup_transfer to preserve keepon bits */
++    conn->sockfd = conn->writesockfd;
++
+     if(result) {
+       state(conn, SSH_SFTP_CLOSE);
+       sshc->actualcode = result;
+@@ -1914,6 +1917,12 @@ static CURLcode ssh_statemach_act(struct
+   else {
+     result = Curl_setup_transfer(conn, FIRSTSOCKET, data->req.size,
+                                  FALSE, NULL, -1, NULL);
++
++    /* not set by Curl_setup_transfer to preserve keepon bits */
++    conn->writesockfd = conn->sockfd;
++
++    /* FIXME: here should be explained why we need it to start the download */
++    conn->cselect_bits = CURL_CSELECT_IN;
+   }
+   if(result) {
+     state(conn, SSH_SFTP_CLOSE);
+@@ -2034,6 +2043,9 @@ static CURLcode ssh_statemach_act(struct
+     result = Curl_setup_transfer(conn, -1, data->req.size, FALSE, NULL,
+                                  FIRSTSOCKET, NULL);
+ 
++    /* not set by Curl_setup_transfer to preserve keepon bits */
++    conn->sockfd = conn->writesockfd;
++
+     if(result) {
+       state(conn, SSH_SCP_CHANNEL_FREE);
+       sshc->actualcode = result;
+@@ -2083,6 +2095,12 @@ static CURLcode ssh_statemach_act(struct
+     result = Curl_setup_transfer(conn, FIRSTSOCKET,
+                                  bytecount, FALSE, NULL, -1, NULL);
+ 
++    /* not set by Curl_setup_transfer to preserve keepon bits */
++    conn->writesockfd = conn->sockfd;
++
++    /* FIXME: here should be explained why we need it to start the download */
++    conn->cselect_bits = CURL_CSELECT_IN;
++
+     if(result) {
+       state(conn, SSH_SCP_CHANNEL_FREE);
+       sshc->actualcode = result;
+@@ -2235,10 +2253,10 @@ static int ssh_perform_getsock(const str
  
    sock[0] = conn->sock[FIRSTSOCKET];
  
@@ -14,7 +60,7 @@ diff -rup curl-7.19.6.orig/lib/ssh.c curl-7.19.6/lib/ssh.c
      bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET);
  
    return bitmap;
-@@ -2282,15 +2282,17 @@ static void ssh_block2waitfor(struct con
+@@ -2282,15 +2300,17 @@ static void ssh_block2waitfor(struct con
  {
    struct ssh_conn *sshc = &conn->proto.sshc;
    int dir;
@@ -37,8 +83,19 @@ diff -rup curl-7.19.6.orig/lib/ssh.c curl-7.19.6/lib/ssh.c
    /* no libssh2 directional support so we simply don't know */
 diff -rup curl-7.19.6.orig/lib/transfer.c curl-7.19.6/lib/transfer.c
 --- curl-7.19.6.orig/lib/transfer.c	2009-07-22 22:09:53.000000000 +0200
-+++ curl-7.19.6/lib/transfer.c	2009-09-02 15:43:13.338644150 +0200
-@@ -1884,33 +1884,46 @@ Transfer(struct connectdata *conn)
++++ curl-7.19.6/lib/transfer.c	2009-09-16 16:25:57.195363278 +0200
+@@ -1652,10 +1652,6 @@ CURLcode Curl_readwrite(struct connectda
+ 
+   if((k->keepon & KEEP_RECVBITS) == KEEP_RECV) {
+     fd_read = conn->sockfd;
+-#if defined(USE_LIBSSH2)
+-    if(conn->protocol & (PROT_SCP|PROT_SFTP))
+-      select_res |= CURL_CSELECT_IN;
+-#endif /* USE_LIBSSH2 */
+   } else
+     fd_read = CURL_SOCKET_BAD;
+ 
+@@ -1884,33 +1880,39 @@ Transfer(struct connectdata *conn)
      return CURLE_OK;
  
    while(!done) {
@@ -48,13 +105,6 @@ diff -rup curl-7.19.6.orig/lib/transfer.c curl-7.19.6/lib/transfer.c
 +    curl_socket_t fd_write = conn->writesockfd;
 +    int keepon = k->keepon;
 +
-+#if defined(USE_LIBSSH2)
-+    if(conn->protocol & (PROT_SCP|PROT_SFTP)) {
-+      fd_read = conn->sock[FIRSTSOCKET];
-+      fd_write = conn->sock[FIRSTSOCKET];
-+    }
-+#endif /* USE_LIBSSH2 */
-+
 +    if(conn->waitfor) {
 +      /* if waitfor is set, get the RECV and SEND bits from that but keep the
 +         other bits */
@@ -95,7 +145,7 @@ diff -rup curl-7.19.6.orig/lib/transfer.c curl-7.19.6/lib/transfer.c
  
 diff -rup curl-7.19.6.orig/lib/urldata.h curl-7.19.6/lib/urldata.h
 --- curl-7.19.6.orig/lib/urldata.h	2009-07-23 00:49:56.000000000 +0200
-+++ curl-7.19.6/lib/urldata.h	2009-09-02 15:43:13.339644227 +0200
++++ curl-7.19.6/lib/urldata.h	2009-09-16 16:25:57.196363391 +0200
 @@ -565,7 +565,6 @@ struct ssh_conn {
    LIBSSH2_CHANNEL *ssh_channel; /* Secure Shell channel handle */
    LIBSSH2_SFTP *sftp_session;   /* SFTP handle */

diff --git a/curl.spec b/curl.spec
index 5662eb6..ddd1bb2 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.19.6
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@@ -150,6 +150,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Wed Sep 16 2009 Kamil Dudka <kdudka@redhat.com> 7.19.6-6
+- update polling patch to the latest upstream version
+
 * Thu Sep 03 2009 Kamil Dudka <kdudka@redhat.com> 7.19.6-5
 - cover ssh and stunnel support by the test-suite
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-03 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:33 [rpms/curl] curl-v8.23.0-3: - update polling patch to the latest upstream version Kamil Dudka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox