async handle_read_frame in server

This commit is contained in:
Peter Thorson
2012-03-21 21:56:23 -06:00
parent 892fdd2456
commit 461fe64242

View File

@@ -616,7 +616,15 @@ void server<endpoint>::connection<connection_type>::handle_write_response(
m_endpoint.get_handler()->on_open(m_connection.shared_from_this());
m_connection.handle_read_frame(boost::system::error_code());
get_io_service().post(
m_connection.m_strand.wrap(boost::bind(
&connection_type::handle_read_frame,
m_connection.shared_from_this(),
boost::system::error_code()
))
);
//m_connection.handle_read_frame(boost::system::error_code());
}
template <class endpoint>