Default to no keep-alive if unset

For consistency with other optional flags.

Updates #20
This commit is contained in:
Davide De Rosa 2018-09-08 12:55:22 +02:00
parent 9594bbc765
commit 66864da51b
2 changed files with 1 additions and 3 deletions

View File

@ -46,8 +46,6 @@ struct CoreConfiguration {
static let tickInterval = 0.2
static let pingInterval = 10.0
static let pingTimeout = 120.0
static let retransmissionLimit = 0.1

View File

@ -152,7 +152,7 @@ extension SessionProxy {
clientCertificatePath = nil
clientKeyPath = nil
compressionFraming = .disabled
keepAliveInterval = CoreConfiguration.pingInterval
keepAliveInterval = nil
renegotiatesAfter = nil
}