Skip to content

Commit

Permalink
Merge pull request #2030 from Vort/non_block
Browse files Browse the repository at this point in the history
enable non-blocking mode for UDP sockets
  • Loading branch information
orignal authored Feb 28, 2024
2 parents ca45fe7 + aa1de7f commit 692f495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libi2pd/SSU2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 692f495

Please sign in to comment.