Commit Graph

34 Commits

Author SHA1 Message Date
Arvid Norberg
4e1af65fe0 fix issue where event=stopped announces wouldn't be sent when closing session 2011-09-17 21:15:42 +00:00
Arvid Norberg
801d3637b9 attempt to fix crash in udp_socket when using a broken socks5 proxy 2011-05-14 22:25:49 +00:00
Arvid Norberg
56937edf56 cleaned up some exception handling and introduced macros like BOOST_TRY/BOOST_CATCH to make the optional exception handling nicer 2011-02-25 17:00:36 +00:00
Arvid Norberg
2e871382d7 add debug configuration to debug shutdown-stall bugs / outstanding async operations 2010-11-28 01:47:30 +00:00
Arvid Norberg
1b308a0ca8 fixed UPnP shutdown issue 2010-09-30 08:57:12 +00:00
Arvid Norberg
b882914461 refactored socket reading code to not use async. operations unnecessarily 2010-06-18 04:43:20 +00:00
Arvid Norberg
6343fe6a6d optimized header dependencies to lower build time 2009-11-23 08:38:50 +00:00
Arvid Norberg
8a5b7d5d36 got rid of the last recursive mutexes. abstracted the threading primitives (and switched over to use asio's internal ones). 2009-10-20 02:49:56 +00:00
Arvid Norberg
6c67da08d6 split socket.hpp up in multiple headers to lower build time somewhat 2009-09-16 03:46:36 +00:00
Arvid Norberg
a9a12a2391 fix build with boost-1.34.1 2009-06-03 07:22:43 +00:00
Arvid Norberg
e3c07c0934 converted some recursive mutexes to regular ones 2009-05-23 21:36:09 +00:00
Arvid Norberg
6c972e03a4 fixed corruption of the connection queue when a peer_connection fails immediately in its connect() function 2009-04-26 02:46:10 +00:00
Arvid Norberg
09b3a865ef fixed compiler flags in pkg-config file and made header files not depend on the NDEBUG define 2008-11-29 21:33:21 +00:00
Arvid Norberg
4e9124019b added accessor to query for the max number of connections 2008-11-08 07:40:55 +00:00
Arvid Norberg
593af53aba fix for connection_queue::close() to maintain the correct m_num_connecting counter 2008-11-01 18:01:00 +00:00
Arvid Norberg
da9a5c4262 connection_queue::close() fix 2008-11-01 09:02:13 +00:00
Arvid Norberg
d359e84b34 fix connection_queue::close 2008-11-01 01:38:14 +00:00
Arvid Norberg
4dada930ac made torrents not wanting more peers whene they're shutting down. Closes out all connections in the connection queue explicitly when session is shutting down 2008-10-30 17:13:10 +00:00
Arvid Norberg
c7e6c04705 switched over to asio from boost-1.35 2008-05-03 16:05:42 +00:00
Arvid Norberg
3c9f2f685b msvc fix 2008-03-21 05:41:56 +00:00
Arvid Norberg
e9e74a928c fixed bug in connection queue 2008-03-19 19:27:28 +00:00
Arvid Norberg
537f21d1b9 connection rate improvement when using a half-open connections limit 2008-03-16 10:49:47 +00:00
Arvid Norberg
cd65fb8b0c added priority to connection queue. trackers and upnp connections have higher priority than peers 2008-03-12 07:44:27 +00:00
Arvid Norberg
e528577e65 made connection queue build without exception support 2007-12-29 22:45:42 +00:00
Arvid Norberg
fd51412b70 shutdown improvements. Fixes stall 2007-11-02 00:27:53 +00:00
Arvid Norberg
8f07edbed2 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 2007-10-26 07:14:19 +00:00
Arvid Norberg
966800cd5b replaced the assert macro to TORRENT_ASSERT instead of hi-jacking assert. 2007-10-05 00:30:00 +00:00
Arvid Norberg
f95e78e7f2 fixed potential dead-lock in connection queue 2007-09-09 23:03:49 +00:00
Arvid Norberg
777bb87a55 made connection_queue thread safe 2007-09-08 16:27:43 +00:00
Arvid Norberg
054fa03d9d connection queue fix 2007-07-27 17:41:42 +00:00
Arvid Norberg
cf35ec6d9c added asserts to try to catch #84 2007-07-15 19:00:41 +00:00
Arvid Norberg
d964abda7a fixed typo in previous check-in 2007-05-17 16:04:09 +00:00
Arvid Norberg
6d8cf1899c connection queue fixes 2007-05-17 02:55:44 +00:00
Arvid Norberg
49bd69cad4 introduced a proper half open TCP connection limit. Also exposed the connection queue to let clients use the same connection limiter as libtorrent. UPnP connections and tracker connection are now also limited as well as peer connections and web seeds 2007-05-05 00:29:33 +00:00