From e2870feb373f7d0b925fa616faae819dd63b5852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:48:24 +0100 Subject: [PATCH] Fix setting socket local endpoint --- nano/node/transport/tcp_server.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nano/node/transport/tcp_server.cpp b/nano/node/transport/tcp_server.cpp index 3b920c1c34..83dfef4924 100644 --- a/nano/node/transport/tcp_server.cpp +++ b/nano/node/transport/tcp_server.cpp @@ -171,6 +171,12 @@ void nano::transport::tcp_listener::on_connection (std::functionlocal = new_connection->tcp_socket.local_endpoint (ec); + } + // Make sure the new connection doesn't idle. Note that in most cases, the callback is going to start // an IO operation immediately, which will start a timer. new_connection->start ();