all: increase default TCP timeouts, update simplexmq (#3540)
This commit is contained in:
parent
ca6dfb5ea1
commit
7ec39d1ffa
@ -51,9 +51,9 @@ struct AdvancedNetworkSettings: View {
|
|||||||
}
|
}
|
||||||
.disabled(currentNetCfg == NetCfg.proxyDefaults)
|
.disabled(currentNetCfg == NetCfg.proxyDefaults)
|
||||||
|
|
||||||
timeoutSettingPicker("TCP connection timeout", selection: $netCfg.tcpConnectTimeout, values: [5_000000, 7_500000, 10_000000, 15_000000, 20_000000, 30_000000, 45_000000], label: secondsLabel)
|
timeoutSettingPicker("TCP connection timeout", selection: $netCfg.tcpConnectTimeout, values: [7_500000, 10_000000, 15_000000, 20_000000, 30_000000, 45_000000], label: secondsLabel)
|
||||||
timeoutSettingPicker("Protocol timeout", selection: $netCfg.tcpTimeout, values: [3_000000, 5_000000, 7_000000, 10_000000, 15_000000, 20_000000, 30_000000], label: secondsLabel)
|
timeoutSettingPicker("Protocol timeout", selection: $netCfg.tcpTimeout, values: [5_000000, 7_000000, 10_000000, 15_000000, 20_000000, 30_000000], label: secondsLabel)
|
||||||
timeoutSettingPicker("Protocol timeout per KB", selection: $netCfg.tcpTimeoutPerKb, values: [15_000, 30_000, 60_000, 90_000, 120_000], label: secondsLabel)
|
timeoutSettingPicker("Protocol timeout per KB", selection: $netCfg.tcpTimeoutPerKb, values: [15_000, 30_000, 45_000, 60_000, 90_000, 120_000], label: secondsLabel)
|
||||||
timeoutSettingPicker("PING interval", selection: $netCfg.smpPingInterval, values: [120_000000, 300_000000, 600_000000, 1200_000000, 2400_000000, 3600_000000], label: secondsLabel)
|
timeoutSettingPicker("PING interval", selection: $netCfg.smpPingInterval, values: [120_000000, 300_000000, 600_000000, 1200_000000, 2400_000000, 3600_000000], label: secondsLabel)
|
||||||
intSettingPicker("PING count", selection: $netCfg.smpPingCount, values: [1, 2, 3, 5, 8], label: "")
|
intSettingPicker("PING count", selection: $netCfg.smpPingCount, values: [1, 2, 3, 5, 8], label: "")
|
||||||
Toggle("Enable TCP keep-alive", isOn: $enableKeepAlive)
|
Toggle("Enable TCP keep-alive", isOn: $enableKeepAlive)
|
||||||
|
@ -1207,9 +1207,9 @@ public struct NetCfg: Codable, Equatable {
|
|||||||
public static let defaults: NetCfg = NetCfg(
|
public static let defaults: NetCfg = NetCfg(
|
||||||
socksProxy: nil,
|
socksProxy: nil,
|
||||||
sessionMode: TransportSessionMode.user,
|
sessionMode: TransportSessionMode.user,
|
||||||
tcpConnectTimeout: 15_000_000,
|
tcpConnectTimeout: 20_000_000,
|
||||||
tcpTimeout: 10_000_000,
|
tcpTimeout: 15_000_000,
|
||||||
tcpTimeoutPerKb: 30_000,
|
tcpTimeoutPerKb: 45_000,
|
||||||
tcpKeepAlive: KeepAliveOpts.defaults,
|
tcpKeepAlive: KeepAliveOpts.defaults,
|
||||||
smpPingInterval: 1200_000_000,
|
smpPingInterval: 1200_000_000,
|
||||||
smpPingCount: 3,
|
smpPingCount: 3,
|
||||||
|
@ -2800,9 +2800,9 @@ data class NetCfg(
|
|||||||
hostMode = HostMode.OnionViaSocks,
|
hostMode = HostMode.OnionViaSocks,
|
||||||
requiredHostMode = false,
|
requiredHostMode = false,
|
||||||
sessionMode = TransportSessionMode.User,
|
sessionMode = TransportSessionMode.User,
|
||||||
tcpConnectTimeout = 15_000_000,
|
tcpConnectTimeout = 20_000_000,
|
||||||
tcpTimeout = 10_000_000,
|
tcpTimeout = 15_000_000,
|
||||||
tcpTimeoutPerKb = 30_000,
|
tcpTimeoutPerKb = 45_000,
|
||||||
tcpKeepAlive = KeepAliveOpts.defaults,
|
tcpKeepAlive = KeepAliveOpts.defaults,
|
||||||
smpPingInterval = 1200_000_000,
|
smpPingInterval = 1200_000_000,
|
||||||
smpPingCount = 3
|
smpPingCount = 3
|
||||||
|
@ -154,20 +154,20 @@ fun AdvancedNetworkSettingsView(chatModel: ChatModel) {
|
|||||||
SectionItemView {
|
SectionItemView {
|
||||||
TimeoutSettingRow(
|
TimeoutSettingRow(
|
||||||
stringResource(MR.strings.network_option_tcp_connection_timeout), networkTCPConnectTimeout,
|
stringResource(MR.strings.network_option_tcp_connection_timeout), networkTCPConnectTimeout,
|
||||||
listOf(5_000000, 7_500000, 10_000000, 15_000000, 20_000000, 30_000_000, 45_000_000), secondsLabel
|
listOf(7_500000, 10_000000, 15_000000, 20_000000, 30_000_000, 45_000_000), secondsLabel
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
SectionItemView {
|
SectionItemView {
|
||||||
TimeoutSettingRow(
|
TimeoutSettingRow(
|
||||||
stringResource(MR.strings.network_option_protocol_timeout), networkTCPTimeout,
|
stringResource(MR.strings.network_option_protocol_timeout), networkTCPTimeout,
|
||||||
listOf(3_000000, 5_000000, 7_000000, 10_000000, 15_000000, 20_000_000, 30_000_000), secondsLabel
|
listOf(5_000000, 7_000000, 10_000000, 15_000000, 20_000_000, 30_000_000), secondsLabel
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
SectionItemView {
|
SectionItemView {
|
||||||
// can't be higher than 130ms to avoid overflow on 32bit systems
|
// can't be higher than 130ms to avoid overflow on 32bit systems
|
||||||
TimeoutSettingRow(
|
TimeoutSettingRow(
|
||||||
stringResource(MR.strings.network_option_protocol_timeout_per_kb), networkTCPTimeoutPerKb,
|
stringResource(MR.strings.network_option_protocol_timeout_per_kb), networkTCPTimeoutPerKb,
|
||||||
listOf(15_000, 30_000, 60_000, 90_000, 120_000), secondsLabel
|
listOf(15_000, 30_000, 45_000, 60_000, 90_000, 120_000), secondsLabel
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
SectionItemView {
|
SectionItemView {
|
||||||
|
@ -11,7 +11,7 @@ constraints: zip +disable-bzip2 +disable-zstd
|
|||||||
source-repository-package
|
source-repository-package
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/simplex-chat/simplexmq.git
|
location: https://github.com/simplex-chat/simplexmq.git
|
||||||
tag: 560dc553127851fa1fb201d0a9c80dcf1ad6e5dc
|
tag: f576260594b9898e26dbac1bcb4b5061fa4fa242
|
||||||
|
|
||||||
source-repository-package
|
source-repository-package
|
||||||
type: git
|
type: git
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"https://github.com/simplex-chat/simplexmq.git"."560dc553127851fa1fb201d0a9c80dcf1ad6e5dc" = "1xz3lw5dsh7gm136jzwmsbqjigsqsnjlbhg38mpc6lm586lg8f9x";
|
"https://github.com/simplex-chat/simplexmq.git"."f576260594b9898e26dbac1bcb4b5061fa4fa242" = "0lmfncha6dxxg5ck9f4a155kyd6267k5m9w5mli121lir6ikvk7z";
|
||||||
"https://github.com/simplex-chat/hs-socks.git"."a30cc7a79a08d8108316094f8f2f82a0c5e1ac51" = "0yasvnr7g91k76mjkamvzab2kvlb1g5pspjyjn2fr6v83swjhj38";
|
"https://github.com/simplex-chat/hs-socks.git"."a30cc7a79a08d8108316094f8f2f82a0c5e1ac51" = "0yasvnr7g91k76mjkamvzab2kvlb1g5pspjyjn2fr6v83swjhj38";
|
||||||
"https://github.com/kazu-yamamoto/http2.git"."f5525b755ff2418e6e6ecc69e877363b0d0bcaeb" = "0fyx0047gvhm99ilp212mmz37j84cwrfnpmssib5dw363fyb88b6";
|
"https://github.com/kazu-yamamoto/http2.git"."f5525b755ff2418e6e6ecc69e877363b0d0bcaeb" = "0fyx0047gvhm99ilp212mmz37j84cwrfnpmssib5dw363fyb88b6";
|
||||||
"https://github.com/simplex-chat/direct-sqlcipher.git"."f814ee68b16a9447fbb467ccc8f29bdd3546bfd9" = "1ql13f4kfwkbaq7nygkxgw84213i0zm7c1a8hwvramayxl38dq5d";
|
"https://github.com/simplex-chat/direct-sqlcipher.git"."f814ee68b16a9447fbb467ccc8f29bdd3546bfd9" = "1ql13f4kfwkbaq7nygkxgw84213i0zm7c1a8hwvramayxl38dq5d";
|
||||||
|
Loading…
Reference in New Issue
Block a user