mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 08:17:13 +00:00
preliminary work on various timeouts, adjusts the handler API to be more consistant
This commit is contained in:
@@ -96,8 +96,8 @@ void server_session::read_handshake() {
|
||||
|
||||
m_timer.async_wait(
|
||||
boost::bind(
|
||||
&session::handle_timer_expired,
|
||||
this,
|
||||
&session::handle_handshake_expired,
|
||||
shared_from_this(),
|
||||
boost::asio::placeholders::error
|
||||
)
|
||||
);
|
||||
@@ -342,6 +342,9 @@ void server_session::handle_write_handshake(const boost::system::error_code& err
|
||||
|
||||
m_state = STATE_OPEN;
|
||||
|
||||
// stop the handshake timer
|
||||
m_timer.cancel();
|
||||
|
||||
if (m_local_interface) {
|
||||
m_local_interface->on_open(shared_from_this());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user