preliminary work on various timeouts, adjusts the handler API to be more consistant

This commit is contained in:
Peter Thorson
2011-10-20 08:45:10 -05:00
parent 333fd6101e
commit 41f60162ec
5 changed files with 26 additions and 4 deletions

View File

@@ -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());
}