[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 158/222: connect: return CURLE_OPERATION_TIMEDOUT for errno == E
From: |
gnunet |
Subject: |
[gnurl] 158/222: connect: return CURLE_OPERATION_TIMEDOUT for errno == ETIMEDOUT |
Date: |
Thu, 07 Nov 2019 00:10:54 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 490effc193f548d02f7cc9b05eb19350e28cc5e7
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Oct 4 13:29:04 2019 +0200
connect: return CURLE_OPERATION_TIMEDOUT for errno == ETIMEDOUT
Previosly all connect() failures would return CURLE_COULDNT_CONNECT, no
matter what errno said.
This makes for example --retry work on these transfer failures.
Reported-by: Nathaniel J. Smith
Fixes #4461
Clsoes #4462
---
lib/connect.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/connect.c b/lib/connect.c
index 77196250d..bb2275e4d 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -976,6 +976,14 @@ CURLcode Curl_is_connected(struct connectdata *conn,
failf(data, "Failed to connect to %s port %ld: %s",
hostname, conn->port,
Curl_strerror(error, buffer, sizeof(buffer)));
+
+#ifdef WSAETIMEDOUT
+ if(WSAETIMEDOUT == data->state.os_errno)
+ result = CURLE_OPERATION_TIMEDOUT;
+#elif defined(ETIMEDOUT)
+ if(ETIMEDOUT == data->state.os_errno)
+ result = CURLE_OPERATION_TIMEDOUT;
+#endif
}
return result;
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 176/222: CURLOPT_TIMEOUT.3: Clarify transfer timeout time includes queue time, (continued)
- [gnurl] 176/222: CURLOPT_TIMEOUT.3: Clarify transfer timeout time includes queue time, gnunet, 2019/11/06
- [gnurl] 173/222: tests: line ending fixes for Windows, gnunet, 2019/11/06
- [gnurl] 179/222: configure: remove all cyassl references, gnunet, 2019/11/06
- [gnurl] 183/222: http2_recv: a closed stream trumps pause state, gnunet, 2019/11/06
- [gnurl] 184/222: appveyor: Add MSVC ARM64 build, gnunet, 2019/11/06
- [gnurl] 194/222: appveyor: make winbuilds with DEBUG=no/yes and VS 2015/2017, gnunet, 2019/11/06
- [gnurl] 164/222: socketpair: fix include and define for older TCP header systems, gnunet, 2019/11/06
- [gnurl] 172/222: tests: use proxy feature, gnunet, 2019/11/06
- [gnurl] 204/222: appveyor: publish artifacts on appveyor, gnunet, 2019/11/06
- [gnurl] 156/222: tests: use port 2 instead of 60000 for a safer non-listening port, gnunet, 2019/11/06
- [gnurl] 158/222: connect: return CURLE_OPERATION_TIMEDOUT for errno == ETIMEDOUT,
gnunet <=
- [gnurl] 155/222: KNOWN_BUGS: IDN tests failing on Windows, gnunet, 2019/11/06
- [gnurl] 160/222: socketpair: an implemention for Windows and more, gnunet, 2019/11/06
- [gnurl] 162/222: gskit: use the generic Curl_socketpair, gnunet, 2019/11/06
- [gnurl] 147/222: docs: added multi-event.c example, gnunet, 2019/11/06
- [gnurl] 163/222: socketpair: fix double-close in error case, gnunet, 2019/11/06
- [gnurl] 170/222: security: silence conversion warning, gnunet, 2019/11/06
- [gnurl] 178/222: test1162: disable MSYS2's POSIX path conversion, gnunet, 2019/11/06
- [gnurl] 166/222: KNOWN_BUGS: "LDAP on Windows does authentication wrong", gnunet, 2019/11/06
- [gnurl] 171/222: smbserver: fix Python 3 compatibility, gnunet, 2019/11/06
- [gnurl] 168/222: TODO: Handle growing SFTP files, gnunet, 2019/11/06