diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2021-10-22 16:02:25 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2021-10-22 16:02:25 -0400 |
commit | 23cabbe64da5f137a28c4e95d2a4122c5f99bec0 (patch) | |
tree | 1d202766e56d6fa0e7bcce6e9395d90994f0f236 | |
parent | c8d240b5da201f87f1802fe85851237b6453022a (diff) | |
download | sdl_core-fix/min_protocol_version_2.tar.gz |
Update minimum value of MaxSupportedProtocolVersion to 2fix/min_protocol_version_2
If this value is set to 1, no apps can register because SDL Core responds with UNSUPPORTED_VERSION to protocol V1 messages (besides the initial StartService)
-rw-r--r-- | src/appMain/smartDeviceLink.ini | 2 | ||||
-rw-r--r-- | src/components/config_profile/src/profile.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/appMain/smartDeviceLink.ini b/src/appMain/smartDeviceLink.ini index 56822db0ef..15bba13b86 100644 --- a/src/appMain/smartDeviceLink.ini +++ b/src/appMain/smartDeviceLink.ini @@ -237,7 +237,7 @@ CloudAppRetryTimeout = 1000 CloudAppMaxRetryAttempts = 5 [ProtocolHandler] -; SDL supported protocol version +; SDL supported protocol version. Minimum value is 2 MaxSupportedProtocolVersion = 5 ; Packet with payload bigger than next value will be marked as a malformed ; for protocol v3 or higher diff --git a/src/components/config_profile/src/profile.cc b/src/components/config_profile/src/profile.cc index f318ec98f5..38be86c72f 100644 --- a/src/components/config_profile/src/profile.cc +++ b/src/components/config_profile/src/profile.cc @@ -2298,8 +2298,8 @@ void Profile::UpdateValues() { kProtocolHandlerSection, kMaxSupportedProtocolVersionKey); - if (max_supported_protocol_version_ < 1) { - max_supported_protocol_version_ = 1; + if (max_supported_protocol_version_ < 2) { + max_supported_protocol_version_ = 2; } else if (max_supported_protocol_version_ > kDefaultMaxSupportedProtocolVersion) { max_supported_protocol_version_ = kDefaultMaxSupportedProtocolVersion; |