mirror of
https://github.com/monero-project/monero.git
synced 2025-05-12 17:52:17 -04:00
Merge pull request #5918
4371791
epee: implement handshake timeout for SSL connections (xiphon)
This commit is contained in:
commit
18da0fa240
3 changed files with 30 additions and 5 deletions
|
@ -178,7 +178,7 @@ namespace net_utils
|
|||
// SSL Options
|
||||
if (m_ssl_options.support == epee::net_utils::ssl_support_t::e_ssl_support_enabled || m_ssl_options.support == epee::net_utils::ssl_support_t::e_ssl_support_autodetect)
|
||||
{
|
||||
if (!m_ssl_options.handshake(*m_ssl_socket, boost::asio::ssl::stream_base::client, addr))
|
||||
if (!m_ssl_options.handshake(*m_ssl_socket, boost::asio::ssl::stream_base::client, addr, timeout))
|
||||
{
|
||||
if (m_ssl_options.support == epee::net_utils::ssl_support_t::e_ssl_support_autodetect)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue