asio handlers are now properly cancelled when destructing the session object, race conditions are avoided by waiting for the io service to complete all tasks

This commit is contained in:
Arvid Norberg
2007-10-26 07:14:19 +00:00
parent fe5e88b548
commit 8f07edbed2
11 changed files with 77 additions and 34 deletions

View File

@@ -86,6 +86,11 @@ namespace libtorrent
try_connect();
}
void connection_queue::close()
{
m_timer.cancel();
}
void connection_queue::limit(int limit)
{ m_half_open_limit = limit; }