this can cause crazy runaway reconnects, need to rethink

This commit is contained in:
Peter Thorson
2012-06-05 08:25:52 -05:00
parent 002e75891e
commit 1d3942622a

View File

@@ -341,8 +341,8 @@ void server<endpoint>::handle_accept(connection_ptr con,
con->m_fail_reason = "too many files open";
// TODO: make this configurable
m_timer.expires_from_now(boost::posix_time::milliseconds(1000));
m_timer.async_wait(boost::bind(&type::start_accept,this));
//m_timer.expires_from_now(boost::posix_time::milliseconds(1000));
//m_timer.async_wait(boost::bind(&type::start_accept,this));
} else if (error == boost::asio::error::operation_aborted) {
con->m_fail_reason = "io_service operation canceled";