aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorWarren Togami <wtogami@gmail.com>2016-05-17 16:43:23 +0900
committerWarren Togami <wtogami@gmail.com>2016-05-17 16:43:23 +0900
commit94fd1d8d53adceb80e5a41cc6438c7704aeac0f7 (patch)
tree5965fe585e04145161f8b15d9c07f56afdf05031 /src/netbase.cpp
parent0d9af79e5084dc2fb6a73abd9dd113dda4e993b4 (diff)
Make Socks5() InterruptibleRecv() timeout/failures informative.
Before: 2016-05-16 06:10:45 ERROR: Error reading proxy response After: 2016-05-16 06:10:45 Socks5() connect to k7s5d6jqig4ej4v4.onion:18333 failed: InterruptibleRecv() timeout or other failure
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 5ab12c9a7c..d2a4188ffc 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -318,7 +318,8 @@ static bool Socks5(const std::string& strDest, int port, const ProxyCredentials
char pchRet1[2];
if (!InterruptibleRecv(pchRet1, 2, SOCKS5_RECV_TIMEOUT, hSocket)) {
CloseSocket(hSocket);
- return error("Error reading proxy response");
+ LogPrintf("Socks5() connect to %s:%d failed: InterruptibleRecv() timeout or other failure\n", strDest, port);
+ return false;
}
if (pchRet1[0] != 0x05) {
CloseSocket(hSocket);