Browse Source

Merge pull request #2030 from Vort/non_block

enable non-blocking mode for UDP sockets
pull/2031/head
orignal 9 months ago committed by GitHub
parent
commit
692f495adc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      libi2pd/SSU2.cpp

1
libi2pd/SSU2.cpp

@ -258,6 +258,7 @@ namespace transport @@ -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 )
{

Loading…
Cancel
Save