Changeset View
Changeset View
Standalone View
Standalone View
src/netbase.cpp
Show All 19 Lines | |||||
#include <fcntl.h> | #include <fcntl.h> | ||||
#endif | #endif | ||||
#if !defined(MSG_NOSIGNAL) | #if !defined(MSG_NOSIGNAL) | ||||
#define MSG_NOSIGNAL 0 | #define MSG_NOSIGNAL 0 | ||||
#endif | #endif | ||||
// Settings | // Settings | ||||
static proxyType proxyInfo[NET_MAX]; | |||||
static proxyType nameProxy; | |||||
static CCriticalSection cs_proxyInfos; | static CCriticalSection cs_proxyInfos; | ||||
static proxyType proxyInfo[NET_MAX] GUARDED_BY(cs_proxyInfos); | |||||
static proxyType nameProxy GUARDED_BY(cs_proxyInfos); | |||||
int nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; | int nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; | ||||
bool fNameLookup = DEFAULT_NAME_LOOKUP; | bool fNameLookup = DEFAULT_NAME_LOOKUP; | ||||
// Need ample time for negotiation for very slow proxies such as Tor | // Need ample time for negotiation for very slow proxies such as Tor | ||||
// (milliseconds) | // (milliseconds) | ||||
static const int SOCKS5_RECV_TIMEOUT = 20 * 1000; | static const int SOCKS5_RECV_TIMEOUT = 20 * 1000; | ||||
static std::atomic<bool> interruptSocks5Recv(false); | static std::atomic<bool> interruptSocks5Recv(false); | ||||
▲ Show 20 Lines • Show All 767 Lines • Show Last 20 Lines |