summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler/src/protocol_handler_impl.cc
diff options
context:
space:
mode:
authorAGaliuzov <AGaliuzov@luxoft.com>2015-08-28 16:31:04 +0300
committerAleksandr Galiuzov <AGaliuzov@luxoft.com>2015-08-28 16:56:49 +0300
commit360e2d788d3121213ae96d88ca3c6dc82b5d83ec (patch)
treeb9adc28e61fa5f33eedda93810f2f383471e3104 /src/components/protocol_handler/src/protocol_handler_impl.cc
parent5bfd0e027b914a318b4cff2d99f9bcd2acbba34b (diff)
parentb1f400d57c0f797c4325be6b2de69cc6e068d196 (diff)
downloadsdl_core-360e2d788d3121213ae96d88ca3c6dc82b5d83ec.tar.gz
Merge pull request #198 from LuxoftSDL/DeleteCommand_WARNING
Fix WARNING result interpretation in Mobile.DeleteCommandRequest
Diffstat (limited to 'src/components/protocol_handler/src/protocol_handler_impl.cc')
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index 3e31e928b2..9ae8128f66 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -361,7 +361,7 @@ void ProtocolHandlerImpl::SendMessageToMobileApp(const RawMessagePtr message,
const uint32_t header_size = (PROTOCOL_VERSION_1 == message->protocol_version())
? PROTOCOL_HEADER_V1_SIZE : PROTOCOL_HEADER_V2_SIZE;
- uint32_t max_frame_size = MAXIMUM_FRAME_DATA_SIZE - header_size;
+ uint32_t max_frame_size = MAXIMUM_FRAME_DATA_V2_SIZE - header_size;
#ifdef ENABLE_SECURITY
const security_manager::SSLContext *ssl_context = session_observer_->
GetSSLContext(message->connection_key(), message->service_type());
@@ -377,7 +377,7 @@ void ProtocolHandlerImpl::SendMessageToMobileApp(const RawMessagePtr message,
}
LOG4CXX_DEBUG(logger_, "Optimal packet size is " << max_frame_size);
#endif // ENABLE_SECURITY
- DCHECK(MAXIMUM_FRAME_DATA_SIZE > max_frame_size);
+ DCHECK(MAXIMUM_FRAME_DATA_V2_SIZE > max_frame_size);
if (message->data_size() <= max_frame_size) {