Commit Graph

1804 Commits

Author SHA1 Message Date
Arvid Norberg
06f3ad65e8 fix to file_progress improvement 2008-07-09 15:23:42 +00:00
Arvid Norberg
2d099b090f peer snubbing fix 2008-07-09 11:11:06 +00:00
Arvid Norberg
d06f125513 improved accuracy of the file progress report to include completed blocks from incomplete pieces (but not partial blocks) 2008-07-09 10:45:07 +00:00
Arvid Norberg
63d4e0d4a3 invariant check fix 2008-07-08 21:33:36 +00:00
Arvid Norberg
55a944c014 added a unwanted_block_alert 2008-07-08 18:41:04 +00:00
Arvid Norberg
5c749bcb3c added base class for peer_alerts and turned more alerts into peer_alerts with more information about the peer that generated it 2008-07-08 09:30:10 +00:00
Arvid Norberg
8d4bea9f95 fixed invariant check that could be triggered since peer snubbing was introduced 2008-07-08 08:13:45 +00:00
Arvid Norberg
a20f1a8fa0 keeps track of the number of requests waiting in the send buffer and adjusts bandwidht priority accordingly in the bandwidth limiter 2008-07-08 00:03:08 +00:00
Arvid Norberg
f7042ca84a improved piece timeout and peer snubbing logic 2008-07-07 12:04:06 +00:00
Arvid Norberg
e576babbb8 changed the alerts to have categories and to be filtered with a bitmask instead of having a severity and be filtered by a severity level. 2008-07-06 12:22:56 +00:00
Arvid Norberg
ecb538b4b2 added alert for torrent state changes. Fixes #360 2008-07-03 10:05:51 +00:00
Arvid Norberg
d2b37572fa disable endpoint sorting in http_connection for msvc, since it ICEs the compiler. Fixes #361 2008-07-03 10:05:19 +00:00
Arvid Norberg
66a7f98d84 fixed missing torrent error state 2008-07-02 21:27:16 +00:00
Arvid Norberg
722e9e95e3 frees resume data when done with it 2008-07-02 21:23:02 +00:00
Arvid Norberg
ac6dfa9ea3 factored out constants to enums in lazy_bdecode 2008-07-02 21:19:50 +00:00
Arvid Norberg
0ec6753028 fix build 2008-07-01 22:44:17 +00:00
Andrew Resch
94cbac20cd Do not count downloads as seeds in the queue system. 2008-07-01 21:07:18 +00:00
Arvid Norberg
b354e7e0d9 fixed bug in extension loop 2008-07-01 20:22:25 +00:00
Arvid Norberg
40d7e2ce75 moved load_file into torrent_info.cpp to make it available on windows too. Fixed the exception free path in torrent_info 2008-07-01 11:00:00 +00:00
Arvid Norberg
a71170e601 switched over pex parsing to use lazy_bdecode 2008-07-01 09:02:03 +00:00
Arvid Norberg
10f5418ce7 switched extension handshake parsing over to use lazy_bdecode for improved performance 2008-07-01 08:04:12 +00:00
Arvid Norberg
9c84908bb9 switched resume data parsing over to use lazy_bdecode. Improves memory allocation performance, especially noticable when heap allocations are expensive. Makes it more practical to run with malloc debug. Changed resume data interface to take a vector as opposed to a parsed structure 2008-06-30 23:14:31 +00:00
Arvid Norberg
0e1d2ede70 fix invariant-check bug in peer_connection 2008-06-30 07:58:50 +00:00
Arvid Norberg
d396ab7b17 added pause and resume to the session. Fixes #349 2008-06-29 19:08:30 +00:00
Arvid Norberg
8f1abd9dbe fix bug in previous check-in 2008-06-29 18:03:38 +00:00
Arvid Norberg
2ac5c13e6f introduced a stricter timeout on piece requests and snubbing. exposed some more data about this through the peer_info. Fixes #40 2008-06-29 09:50:42 +00:00
Arvid Norberg
ae9f1e0465 fixed typo 2008-06-29 06:01:20 +00:00
Arvid Norberg
d1b2cd558e moved peer time out logic to second tick 2008-06-29 05:35:48 +00:00
Arvid Norberg
d132dd45e3 removed exceptions from pe_crypto and improved error handling 2008-06-28 10:10:05 +00:00
Arvid Norberg
ae1af66724 fixed typo. Fixes #355 2008-06-27 09:44:14 +00:00
Arvid Norberg
ce99813b48 fix binary file mode in torrent_info. Fixes #354 2008-06-27 09:41:08 +00:00
cg25
ff3e80c42f Removed svn:executable property from {c,h}pp files in branches/RC_0_13 and
trunk.
2008-06-25 14:15:21 +00:00
Arvid Norberg
148640f1ac fix natpmp stall at shutdown 2008-06-24 13:52:14 +00:00
Arvid Norberg
ca0f17ee95 won't save resume data for torrents without a complete state (checking or queued for checking torrents) 2008-06-24 12:48:28 +00:00
Arvid Norberg
84221e05f8 checking torrents fix when aborting session 2008-06-24 12:17:42 +00:00
Arvid Norberg
4d380c57d7 made bdecode not throw 2008-06-23 22:00:27 +00:00
Arvid Norberg
92f13aea68 start torrents sooner after they complete checking 2008-06-23 18:56:55 +00:00
Arvid Norberg
a38d97583e removed old comment 2008-06-23 18:56:02 +00:00
Arvid Norberg
87660b96c5 renamed announce_piece to piece_passed and moved it to piece_finished and piece_failed 2008-06-23 18:54:58 +00:00
Arvid Norberg
9447693202 storage fastresume fix 2008-06-23 18:31:52 +00:00
Arvid Norberg
964e8b93d0 added option to deliberately corrupt data from certain peers, to test the case when hash fails occurs 2008-06-23 15:37:24 +00:00
Arvid Norberg
c210b11b80 better fix for failing pieces 2008-06-23 14:45:01 +00:00
Arvid Norberg
665d508bc3 piece picker fix 2008-06-23 13:02:41 +00:00
cg25
71c4f6f9b6 * improved --with-asio configure option behaviour;
* using -version-info flag instead of -revision one for the sake of correct
  interface versioning;
* renaming library to libtorrent-rasterbar.so to avoind conflicting with other
  libraries.
2008-06-23 00:09:12 +00:00
Arvid Norberg
811d0a6250 storage fast resume check fix 2008-06-22 23:41:03 +00:00
cg25
aeb2dd8c71 Fix mistypo in src/piece_picker.cpp from previous commit. 2008-06-22 23:13:27 +00:00
Andrew Resch
402da3c77c Make active_limit == -1 mean unlimited 2008-06-22 22:49:18 +00:00
Arvid Norberg
f7e1d1c1fd piece picker fix 2008-06-22 22:00:44 +00:00
Arvid Norberg
e4269ddcce fix smart ban assert when closing a torrent with a failing piece 2008-06-22 20:30:43 +00:00
Arvid Norberg
6db1b54304 simplified policy and optimized case when a piece fails hash check 2008-06-22 20:28:03 +00:00