diff options
author | Jürgen Gehring <Juergen.Gehring@bmw.de> | 2016-11-04 09:26:06 -0700 |
---|---|---|
committer | Jürgen Gehring <Juergen.Gehring@bmw.de> | 2016-11-04 09:26:06 -0700 |
commit | 30b6688d9f77d40352cc3cec99052e0946a8affc (patch) | |
tree | 52d7f9332f709917bb287db61505000e18eeeefd /implementation/endpoints/src/tcp_client_endpoint_impl.cpp | |
parent | 7bb933404f4ee0be3add0c506b53e1c1f7274869 (diff) | |
download | vSomeIP-30b6688d9f77d40352cc3cec99052e0946a8affc.tar.gz |
vSomeIP 2.5.02.5.0
Diffstat (limited to 'implementation/endpoints/src/tcp_client_endpoint_impl.cpp')
-rw-r--r-- | implementation/endpoints/src/tcp_client_endpoint_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/implementation/endpoints/src/tcp_client_endpoint_impl.cpp b/implementation/endpoints/src/tcp_client_endpoint_impl.cpp index 97e5579..5165e4b 100644 --- a/implementation/endpoints/src/tcp_client_endpoint_impl.cpp +++ b/implementation/endpoints/src/tcp_client_endpoint_impl.cpp @@ -52,12 +52,12 @@ void tcp_client_endpoint_impl::connect() { if (!its_error || its_error == boost::asio::error::already_open) {
// Nagle algorithm off
- socket_.set_option(ip::tcp::no_delay(true));
+ socket_.set_option(ip::tcp::no_delay(true), its_error);
// Enable SO_REUSEADDR to avoid bind problems with services going offline
// and coming online again and the user has specified only a small number
// of ports in the clients section for one service instance
- socket_.set_option(boost::asio::socket_base::reuse_address(true));
+ socket_.set_option(boost::asio::socket_base::reuse_address(true), its_error);
// In case a client endpoint port was configured,
// bind to it before connecting
|