[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 62/411: conn: check for connection being dead before reuse
From: |
gnunet |
Subject: |
[gnurl] 62/411: conn: check for connection being dead before reuse |
Date: |
Wed, 13 Jan 2021 01:17:57 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 728f8d3bdc336e3fa838f45cad6c0133a6b604ae
Author: Chris Paulson-Ellis <chris@paulson-ellis.org>
AuthorDate: Sat Aug 29 18:26:50 2020 +0100
conn: check for connection being dead before reuse
Prevents incorrect reuse of an HTTP connection that has been prematurely
shutdown() by the server.
Partial revert of 755083d00deb16
Fixes #5884
Closes #5893
---
lib/url.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/url.c b/lib/url.c
index 48b08d7fc..8a7114a23 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1120,6 +1120,12 @@ ConnectionExists(struct Curl_easy *data,
/* connect-only or to-be-closed connections will not be reused */
continue;
+ if(extract_if_dead(check, data)) {
+ /* disconnect it */
+ (void)Curl_disconnect(data, check, /* dead_connection */TRUE);
+ continue;
+ }
+
if(bundle->multiuse == BUNDLE_MULTIPLEX)
multiplexed = CONN_INUSE(check);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 71/411: test971: show test mismatches "inline", (continued)
- [gnurl] 71/411: test971: show test mismatches "inline", gnunet, 2021/01/12
- [gnurl] 44/411: curl.1: fix typo invokved -> invoked, gnunet, 2021/01/12
- [gnurl] 54/411: select: simplify return code handling for poll and select, gnunet, 2021/01/12
- [gnurl] 69/411: optiontable: use DEBUGBUILD, gnunet, 2021/01/12
- [gnurl] 37/411: HTTP/3: update to OpenSSL_1_1_1g-quic-draft-29, gnunet, 2021/01/12
- [gnurl] 11/411: sftp: add new quote commands 'atime' and 'mtime', gnunet, 2021/01/12
- [gnurl] 40/411: scripts: improve the "get latest curl release tag" logic, gnunet, 2021/01/12
- [gnurl] 52/411: tests: add test1912 with typechecks, gnunet, 2021/01/12
- [gnurl] 61/411: buildconf: exec autoreconf to avoid additional process, gnunet, 2021/01/12
- [gnurl] 72/411: copyright.pl: ignore buildconf, gnunet, 2021/01/12
- [gnurl] 62/411: conn: check for connection being dead before reuse,
gnunet <=
- [gnurl] 45/411: docs: non-existing macros in man pages, gnunet, 2021/01/12
- [gnurl] 38/411: options: API for meta-data about easy options, gnunet, 2021/01/12
- [gnurl] 55/411: CMake: add option to enable Unicode on Windows, gnunet, 2021/01/12
- [gnurl] 60/411: CI/azure: no longer ignore results of test 1013, gnunet, 2021/01/12
- [gnurl] 56/411: AppVeyor: switch 64-bit Schannel Debug CMake builds to Unicode, gnunet, 2021/01/12
- [gnurl] 47/411: TLS: fix SRP detection by using the proper #ifdefs, gnunet, 2021/01/12
- [gnurl] 83/411: mqtt.c: avoid curl_ prefix on local variable, gnunet, 2021/01/12
- [gnurl] 78/411: hash: make it 'struct Curl_hash', gnunet, 2021/01/12
- [gnurl] 111/411: configure: let --enable-debug set -Wenum-conversion with gcc >= 10, gnunet, 2021/01/12
- [gnurl] 123/411: docs/LICENSE-MIXING: remove, gnunet, 2021/01/12