From aa1de7fe94acd8656cbf4eaf32e121b776ebf853 Mon Sep 17 00:00:00 2001 From: Vort Date: Wed, 28 Feb 2024 18:55:28 +0200 Subject: [PATCH] enable non-blocking mode for UDP sockets --- libi2pd/SSU2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index 3e0583ea..3d5eb7e2 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -258,6 +258,7 @@ namespace transport socket.set_option (boost::asio::ip::v6_only (true)); socket.set_option (boost::asio::socket_base::receive_buffer_size (SSU2_SOCKET_RECEIVE_BUFFER_SIZE)); socket.set_option (boost::asio::socket_base::send_buffer_size (SSU2_SOCKET_SEND_BUFFER_SIZE)); + socket.non_blocking (true); } catch (std::exception& ex ) {