IOS/NET: Add timeout on blocking connect
This commit is contained in:
1 parent
5e4c6d42a1
commit
bf246c36f5
4 files changed
+44
-2
No files matched your search
@@ -157,6 +157,10 @@ const Info<bool> MAIN_NETWORK_SSL_DUMP_ROOT_CA{{System::Main, "Network", "SSLDum
|
||||
const Info<bool> MAIN_NETWORK_SSL_DUMP_PEER_CERT{{System::Main, "Network", "SSLDumpPeerCert"},
|
||||
false};
|
||||
const Info<bool> MAIN_NETWORK_DUMP_AS_PCAP{{System::Main, "Network", "DumpAsPCAP"}, false};
|
||||
// Default value based on:
|
||||
// - [RFC 1122] 4.2.3.5 TCP Connection Failures (at least 3 minutes)
|
||||
// - https://dolp.in/pr8759 hwtest (3 minutes and 10 seconds)
|
||||
const Info<int> MAIN_NETWORK_TIMEOUT{{System::Main, "Network", "NetworkTimeout"}, 190};
|
||||
|
||||
// Main.Interface
|
||||
|
||||
|
||||
@@ -130,6 +130,7 @@ extern const Info<bool> MAIN_NETWORK_SSL_VERIFY_CERTIFICATES;
|
||||
extern const Info<bool> MAIN_NETWORK_SSL_DUMP_ROOT_CA;
|
||||
extern const Info<bool> MAIN_NETWORK_SSL_DUMP_PEER_CERT;
|
||||
extern const Info<bool> MAIN_NETWORK_DUMP_AS_PCAP;
|
||||
extern const Info<int> MAIN_NETWORK_TIMEOUT;
|
||||
|
||||
// Main.Interface
|
||||
|
||||
|
||||
Reference in new issue
Block a user