Boost C++ Libraries: Ticket #10235: a strange problem for deadline_timer https://svn.boost.org/trac10/ticket/10235 <p> os:cent os 6.4 32bit. boost:1.55.0 </p> <p> I have these codes for tcp async_connect: session-&gt;tcp_socket().async_connect(ep, m_strand.wrap(boost::bind( </p> <blockquote> <p> &amp;ifstiotcp::_connected, this, session, boost::asio::placeholders::error))); </p> </blockquote> <p> timer.expires_from_now(boost::posix_time::seconds(5), ec); timer.async_wait(m_strand.wrap(boost::bind(&amp;ifstiotcp::_connect_timeout, this, session, boost::asio::placeholders::error))); </p> <p> and, in _connected function to cancel timer: timer.cancel(ec); </p> <p> and, in _connected_timeout function: if (boost::asio::error::operation_aborted != ec) { </p> <blockquote> <p> <em> timeout in here </em></p> </blockquote> <p> } </p> <p> now, a strange problem as follows: 1) when run to _connected function and cancel deadline_timer success; 2) after 5 seconds, run the 'timeout in here'; 3) anyone has the same problem? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10235 Trac 1.4.3