aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/net_helper.h
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-09-16 18:55:36 +0000
committerxiphon <xiphon@protonmail.com>2019-09-16 18:55:36 +0000
commit7d81850a4619c03b1d0e16183a7ee311c428d849 (patch)
tree371c1220e993ece7082d1fa62e69203d3da53726 /contrib/epee/include/net/net_helper.h
parentMerge pull request #5876 (diff)
downloadmonero-7d81850a4619c03b1d0e16183a7ee311c428d849.tar.xz
epee: fix network timeouts in blocked_mode_client
Diffstat (limited to 'contrib/epee/include/net/net_helper.h')
-rw-r--r--contrib/epee/include/net/net_helper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/net/net_helper.h b/contrib/epee/include/net/net_helper.h
index 2b02eafa4..e2dedfdd0 100644
--- a/contrib/epee/include/net/net_helper.h
+++ b/contrib/epee/include/net/net_helper.h
@@ -108,11 +108,12 @@ namespace net_utils
m_ssl_options(epee::net_utils::ssl_support_t::e_ssl_support_autodetect),
m_initialized(true),
m_connected(false),
- m_deadline(m_io_service),
+ m_deadline(m_io_service, std::chrono::steady_clock::time_point::max()),
m_shutdowned(0),
m_bytes_sent(0),
m_bytes_received(0)
{
+ check_deadline();
}
/*! The first/second parameters are host/port respectively. The third