Commit Graph

777 Commits

Author SHA1 Message Date
Arvid Norberg fceaa8f79e introduced failcount and retry time settings for peers 2007-04-14 21:47:07 +00:00
Arvid Norberg 44603cf049 removed unnecessary asserts from http_tracker_connection 2007-04-14 20:11:46 +00:00
Arvid Norberg 129b447509 fixed issue where lsd, natpmp and upnp would only be rebound if dht was enabled 2007-04-14 17:30:57 +00:00
Arvid Norberg 0a32fffdfd exception fixes for UPnP and NAT-PMP. port fix for lsd 2007-04-14 15:51:36 +00:00
Arvid Norberg a22ad5ad33 added failcount to peer_info. fixes #31 2007-04-13 20:19:04 +00:00
Arvid Norberg 3d759e8936 fixes in connection policy. fixes #29. inserted more invariant checks in policy 2007-04-13 17:47:40 +00:00
peerkoel b08037d094 Test added to allow conditional compilation of sources in src/kademlia.
New file time.hpp added to header files that need to be installed.
2007-04-13 16:11:11 +00:00
Arvid Norberg 57eeba53a8 fix to previous checking 2007-04-13 01:57:16 +00:00
Arvid Norberg 0e5ce5dd9d cleaned up policy a bit, moved the seed check in on_bitfield to be performed before the piece picker is updated 2007-04-13 01:53:25 +00:00
Arvid Norberg 3293bf9b6e the seed flag in the peer struct is updated when connected to a seed (will avoid trying to reconnect to a seed when we're also a seed) 2007-04-13 00:22:03 +00:00
Arvid Norberg 52623405f0 improved unchoking, connecting and disconnecting logic in policy. seems to fix #29 2007-04-12 10:21:55 +00:00
Arvid Norberg 05e16f8fbd added missing upnp.cpp reference in Makefile 2007-04-12 06:37:48 +00:00
Arvid Norberg 79cfdb609f fixed threading problem in file_pool 2007-04-12 05:08:23 +00:00
Arvid Norberg 87b1cdc341 fix to avoid connecting web seeds when not a seed but finished 2007-04-11 22:27:58 +00:00
Arvid Norberg 3bc8d093c2 fixed the distributed copy function in the piece picker 2007-04-11 20:33:28 +00:00
Arvid Norberg e503e334d5 fix to previous check-in 2007-04-11 17:44:15 +00:00
Arvid Norberg 109cc3f232 made the announce timer (for dht and lsd) use a weak pointer instead of raw pointer, to avoid problems when torrent is being destructed 2007-04-11 17:22:19 +00:00
Arvid Norberg 250adabcfa removed unused web stats 2007-04-11 16:50:54 +00:00
Arvid Norberg 3ed24da320 added source to peer_info, which is a bitmask of the sources where the peer has been acquired from 2007-04-10 21:23:13 +00:00
Arvid Norberg 009b10e9bf completed previous fix 2007-04-10 19:22:08 +00:00
Arvid Norberg e65206309c fixed issue when aborting an http connection 2007-04-10 18:53:12 +00:00
Arvid Norberg 4ceb6a02ea added download_limit and upload_limit functions to torrent_handle 2007-04-10 09:25:17 +00:00
Arvid Norberg 0863bc1aa6 removed the dependency on the compiled boost.date_time library 2007-04-10 09:11:32 +00:00
Arvid Norberg d88ffcc0e4 removed some more unecessary boost.date_time dependencies 2007-04-10 07:52:58 +00:00
Arvid Norberg 5be60cc125 upnp made destructor not sync.ing 2007-04-10 05:14:37 +00:00
Arvid Norberg 11136650d6 updates to multicast lsd and upnp 2007-04-09 21:59:40 +00:00
Arvid Norberg 2dea7f072c upnp fix 2007-04-09 00:26:00 +00:00
Arvid Norberg baecc64131 fix to previous timer check-in that broke the api 2007-04-07 03:05:59 +00:00
Arvid Norberg 5f3797cf80 fix in http_connection where the handler was sometimes not called when rate limited and aborted 2007-04-06 23:01:27 +00:00
Arvid Norberg b1501d0dac fix for rate limited http_connection 2007-04-05 20:53:11 +00:00
Arvid Norberg af21efb861 upnp fix 2007-04-05 17:53:42 +00:00
Arvid Norberg e7d1f92623 removed debug printout 2007-04-05 16:33:40 +00:00
Arvid Norberg 27da18bd0a windows fixes 2007-04-05 01:08:21 +00:00
Arvid Norberg 306d015924 added a timer abstraction and replaced the use of boost.date_time. the timers used now are QueryPerformanceCounter on windows, mach_absolute_time on darwin and currently falls back on boost.date_time on other platforms. This has the advantage of being a monotonic clock, and also slightly more efficient 2007-04-04 22:27:36 +00:00
Arvid Norberg 7fc238407c added missing lsd.cpp and lsd.hpp 2007-04-04 19:11:19 +00:00
Arvid Norberg a9eff16c7e natpmp fix if set_mappings is called more than once 2007-04-04 08:56:58 +00:00
Arvid Norberg a4ccee15df removed unused code 2007-04-04 02:10:25 +00:00
Arvid Norberg 5e32484194 first stab at getting local service discovery 2007-04-04 02:06:07 +00:00
Arvid Norberg 2555daa95f fixed upnp when set_mappings are called multiple times before the upnp requests can finish 2007-04-04 00:08:00 +00:00
Arvid Norberg ed9e80a3d4 added support for rate limiting on http_connection 2007-04-03 20:00:47 +00:00
Arvid Norberg 36ca0eb3ba addition to previous peer connection download/upload limit fix 2007-04-02 23:10:11 +00:00
Arvid Norberg ed3bb7e4e8 fixed peer connection rate limits 2007-04-02 22:25:58 +00:00
Arvid Norberg 15ad0a36f6 possible fix to upnp close-down in case there are UPnP devices without WANIPConnection 2007-04-02 20:09:48 +00:00
Arvid Norberg ec2962dd62 extensions are now instantiated for web seeds as well 2007-04-02 20:00:24 +00:00
Arvid Norberg 2fc73e9aeb fixed upnp so that it doesn't overwrite valid ports with 0 2007-04-02 19:17:08 +00:00
Arvid Norberg 10b5f538b1 fixed timeout issues on non-bottled long running http connections 2007-04-02 18:51:35 +00:00
Arvid Norberg b282c43f3f fixed assert caused when network went down 2007-04-02 06:49:15 +00:00
Arvid Norberg 7a30b397f8 made test_storage build and fixed bug introduced when storage was turned into a customization point 2007-04-02 05:46:19 +00:00
Arvid Norberg 2f9611a1a9 UPnP seems to work 2007-04-01 15:39:08 +00:00
Arvid Norberg 3d2a4e00b9 upnp fixes 2007-04-01 01:18:10 +00:00