Skip to content

Commit

Permalink
vSomeIP-Lib 3.4.9-r1
Browse files Browse the repository at this point in the history
Notes:
- Fix QNX build
- Fix missing Stop Offer
- Apply extra fixes to QNX environment
  • Loading branch information
DiogoPedrozza committed Oct 19, 2023
1 parent e598a0d commit 1f5bd3b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ v3.4.8
- security: Fix security library name
- Also remove service instance from map of pending offers
- enforce lock acquisition order to avoid LOI
- Improved logs
- Improved logs for AVB/Spotify

v3.4.7
- Do _NOT_ try to serialize empty names
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set (VSOMEIP_COMPAT_NAME vsomeip)
set (VSOMEIP_MAJOR_VERSION 3)
set (VSOMEIP_MINOR_VERSION 4)
set (VSOMEIP_PATCH_VERSION 9)
set (VSOMEIP_HOTFIX_VERSION 0)
set (VSOMEIP_HOTFIX_VERSION 1)

set (VSOMEIP_VERSION ${VSOMEIP_MAJOR_VERSION}.${VSOMEIP_MINOR_VERSION}.${VSOMEIP_PATCH_VERSION})
set (PACKAGE_VERSION ${VSOMEIP_VERSION}) # Used in documentation/doxygen.in
Expand Down
3 changes: 2 additions & 1 deletion build_qnx/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ CMAKE_ARGS = -DCMAKE_TOOLCHAIN_FILE=$(PROJECT_ROOT)/qnx.nto.toolchain.cmake \
-DINSTALL_INCLUDE_DIR=$(VSOMEIP_INSTALL_ROOT)/usr/include \
-DCPUVARDIR=$(CPUVARDIR) \
-DGCC_VER=${GCC_VER} \
-DVSOMEIP_INSTALL_ROUTINGMANAGERD=ON
-DVSOMEIP_INSTALL_ROUTINGMANAGERD=ON \
-DDISABLE_DLT=y

ifeq ($(GENERATE_TESTS), TRUE)
CMAKE_ARGS += -DENABLE_SIGNAL_HANDLING=1 \
Expand Down
3 changes: 1 addition & 2 deletions implementation/endpoints/src/endpoint_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ instance_t endpoint_impl<Protocol>::get_instance(service_t _service) {
#if defined(__linux__) || defined(__QNX__)
#if VSOMEIP_BOOST_VERSION < 106600
template class endpoint_impl<boost::asio::local::stream_protocol_ext>;
#else
template class endpoint_impl<boost::asio::local::stream_protocol>;
#endif
template class endpoint_impl<boost::asio::local::stream_protocol>;
#endif

template class endpoint_impl<boost::asio::ip::tcp>;
Expand Down
10 changes: 6 additions & 4 deletions implementation/endpoints/src/tcp_server_endpoint_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ bool tcp_server_endpoint_impl::send_error(
its_data.queue_size_ += _size;

if (!its_data.is_sending_) { // no writing in progress
send_queued(its_target_iterator);
(void)send_queued(its_target_iterator);
}
ret = true;
}
Expand All @@ -157,6 +157,9 @@ bool tcp_server_endpoint_impl::send_queued(const target_data_iterator_type _it)
auto connection_iterator = connections_.find(_it->first);
if (connection_iterator != connections_.end()) {
its_connection = connection_iterator->second;
if (its_connection) {
its_connection->send_queued(_it);
}
} else {
VSOMEIP_INFO << "Didn't find connection: "
<< _it->first.address().to_string() << ":" << std::dec
Expand Down Expand Up @@ -196,12 +199,11 @@ bool tcp_server_endpoint_impl::send_queued(const target_data_iterator_type _it)
}
}

// Drop outstanding messages.
_it->second.queue_.clear();
must_erase = true;
}
}
if (its_connection) {
its_connection->send_queued(_it);
}

return (must_erase);
}
Expand Down

0 comments on commit 1f5bd3b

Please sign in to comment.