Commit Graph

8238 Commits

Author SHA1 Message Date
Arvid Norberg 647a96eb8a Merge pull request #264 from aldenml/cross-build
Fixed to make it more cross compile friendly
2015-11-13 23:28:55 -05:00
Alden Torres 611d0c1c6e Fixed to make it compatible with mingw-w64 and generic linux 2015-11-13 07:55:28 -05:00
Arvid Norberg d84cffd7e1 Merge pull request #265 from ssiloti/master
the simulator always supports IPv6
2015-11-13 00:02:13 -05:00
Steven Siloti 1bd706ac14 the simulator always supports IPv6 2015-11-12 20:52:30 -08:00
Arvid Norberg ef1f399fd3 Merge pull request #259 from arvidn/deterministic-rand
use a consistent random number generator
2015-11-12 21:45:09 -05:00
Arvid Norberg 401f12b287 Merge pull request #260 from arvidn/ip-filter
fix IP filter bug when adding a torrent after setting the filter
2015-11-12 21:44:40 -05:00
arvidn 524cf00fcb forward port of version change from RC_1_0 2015-11-12 21:35:50 -05:00
arvidn aef449ad65 update changelog from RC_1_0 2015-11-12 21:28:50 -05:00
Arvid Norberg aa30d64432 Merge pull request #255 from bit/mutable_python
fix mutable dht entries in python bindings
2015-11-12 20:23:28 -05:00
arvidn d4d5f37222 fix typo 2015-11-12 01:42:44 -05:00
arvidn 2626159abe use a consistent random number generator to make simulations deterministic 2015-11-12 00:21:56 -05:00
arvidn 8fa6863e15 fix IP filter bug when adding a torrent after setting the filter 2015-11-11 20:43:42 -05:00
Arvid Norberg bae2b3394f Merge pull request #258 from arvidn/version
forward-port version function from RC_1_0
2015-11-11 19:13:44 -05:00
Arvid Norberg 39f62fe3d9 Merge pull request #251 from arvidn/ipv6-fix
fix IPv6 tracker announce
2015-11-11 19:13:31 -05:00
arvidn fbf152abc0 attribute external IP voting to the actual tracker IP we connected to, and preserve endpoint list in http_connection to make the re-announce to IPv6 logic robust 2015-11-11 01:30:28 -05:00
arvidn d0dcf82612 fix bug in set_version and update version hash 2015-11-11 01:25:30 -05:00
arvidn 4c0b00c390 forward-port version function from RC_1_0 2015-11-11 00:57:51 -05:00
Arvid Norberg 4ebca897d9 Merge pull request #252 from ssiloti/traversal_multiple_dones
fix traversal_algorithm::done() being invoked more than once
2015-11-10 01:44:37 -05:00
Steven Siloti 08632aa5f7 add unit test to check for multiple calls to done() 2015-11-09 20:47:33 -08:00
Steven Siloti c2277b3ea5 fix traversal_algorithm::done() being invoked more than once
A traversal can be done while there are still outstanding queries (i.e.
m_invoke_count is non-zero) if K good responses have already been received and
none of the outstanding queries are closer than the nodes which have responded.

When this happens and the outstanding queries eventually complete or timeout
they call traversal_algorithm::failed() or traversal_algorithm::finished() as
usual which will cause traversal_algorithm::done() to be called yet again.

The fix is to always set the done flag on all queried observers in
traversal_algorithm::done() so that the observers will refrain from calling
back into the traversal.

This also makes traversal_algorithm::abort() redundant since this was the only
thing it did before it called into done().
2015-11-09 20:47:33 -08:00
j a16b8f374b python bindings: fix dht_put/get_mutable_item
- accept strings for public/private keys,
  its not possible to pass boost::arrarys
- sign data passed to dht_put_mutalbe_item
2015-11-09 04:49:49 +01:00
arvidn 0c435b42b2 add some more slack to one of the unit tests 2015-11-08 16:26:58 -05:00
j d36122f252 expose dht put/get data in alerts 2015-11-08 19:06:07 +01:00
arvidn 4814855933 update cache_size docs and raise the cap for 32 bit builds 2015-11-08 10:49:38 -05:00
arvidn 74d12bd35b update libsimulator 2015-11-07 22:50:51 -05:00
arvidn 9c10e99aef forward port fix to not auto-detect disk cache size greater than the virtual address space for 32 bit builds 2015-11-07 22:00:20 -05:00
Arvid Norberg 61138630a3 Merge pull request #245 from arvidn/invalid-request
handle receiving an invalid request
2015-11-07 21:19:31 -05:00
arvidn 2592acfd8c fix c++98 build 2015-11-07 21:14:52 -05:00
arvidn a48cb785d0 forward port piece_block patch from RC_1_0 2015-11-07 18:50:54 -05:00
arvidn a138b2daa9 handle receiving an invalid request 2015-11-07 14:58:08 -05:00
arvidn 06f702b21a fix test_tracker build 2015-11-07 14:57:25 -05:00
arvidn 1fa184ba8a fix msvc-10.0 build 2015-11-07 10:01:01 -05:00
arvidn 00090b8284 fix typo in test_checking, introduced by recent error_code in torrent_status patch 2015-11-07 01:01:07 -05:00
Arvid Norberg ebdde0dfc8 Merge pull request #249 from arvidn/appveyor-fix
fix appveyor build
2015-11-07 00:44:40 -05:00
arvidn ee7774ea37 fix appveyor build 2015-11-07 00:22:13 -05:00
arvidn ced0f74bf8 minor moving around of code 2015-11-06 00:38:42 -05:00
Arvid Norberg e6d7cb2d3f Merge pull request #243 from arvidn/error_code-in-torrent_status
add error_code to torrent_status instead of error string
2015-11-05 21:09:29 -05:00
arvidn e1719d503b update libsimulator 2015-11-05 20:49:02 -05:00
arvidn ebb9fdaf54 add error_code to torrent_status instead of error string 2015-11-05 20:43:23 -05:00
arvidn 4911a85761 updated Changelog 2015-11-02 23:47:46 -05:00
Arvid Norberg cd358aa5a9 Merge pull request #242 from jpetso/master
Build fixes
2015-11-02 18:37:51 -05:00
Jakob Petsovits a3316ec49d CMake build: Asio is now used header-only, remove definitions saying otherwise. 2015-11-02 14:24:56 -05:00
Jakob Petsovits fc5ed962a8 Fix outdated C bindings code so it at least can build again. 2015-11-02 11:09:01 -05:00
arvidn 1046f0c121 update libsimulator submodule 2015-11-02 01:16:40 -05:00
arvidn ee714306be forward port IPv6 IP address resolution in URLs fix 2015-11-01 17:26:45 -05:00
Arvid Norberg ce33f23eab Merge pull request #225 from arvidn/aafigure
Aafigure
2015-10-31 11:17:50 -04:00
arvidn 9a5d728c23 transition from ditaa to aafigure and improve disk cache diagram 2015-10-31 11:15:46 -04:00
arvidn b756465157 update libsimulator 2015-10-31 10:58:20 -04:00
arvidn f5da27ba9e support large info-sections in torrent_info 2015-10-31 10:53:39 -04:00
arvidn 3462c061a7 merged error handling fix from RC_1_0 2015-10-31 10:06:15 -04:00