Commit Graph

8785 Commits

Author SHA1 Message Date
Arvid Norberg 641b6e51f8 Merge pull request #356 from arvidn/dht-simulator
overhaul the dht simulator
2016-01-09 11:24:11 -05:00
arvidn e06daa68a4 overhaul the dht simulator (setup_dht) to be more flexible and cheaper to run thousands of nodes 2016-01-09 01:08:52 -05:00
Arvid Norberg 3efe85849e Merge pull request #368 from arvidn/python-datetime
use datetime type for time_duration in python binding
2016-01-07 23:28:40 -05:00
arvidn ed09a6a01d use datetime type for time_duration in python binding 2016-01-07 17:47:53 -05:00
Arvid Norberg 18980e65a9 Merge pull request #365 from arvidn/python-fix
extend python binding unit test and fix bugs in it
2016-01-06 08:15:09 -05:00
arvidn f44fb4c660 extend python binding unit test and fix bugs in it 2016-01-06 00:17:51 -05:00
Arvid Norberg c36d1d1051 Merge pull request #364 from aldenml/doc-typos
More documentation typos
2016-01-05 22:40:52 -05:00
Alden Torres 7b34379c87 Doc typos 2016-01-05 08:31:04 -05:00
Arvid Norberg c56cf82d50 Merge pull request #359 from arvidn/forward-port
forward port fixes from RC_1_0
2016-01-05 08:16:05 -05:00
arvidn 49b24d4cd0 fix python bindings 2016-01-05 01:32:04 -05:00
Arvid Norberg b750f0bae5 Merge pull request #361 from lucab/lucab/autotools-check
Fixes to run `make check`
2016-01-05 01:29:49 -05:00
Luca Bruno 15ef71303a
autotools: fix `make check` running
Signed-off-by: Luca Bruno <lucab@debian.org>
2016-01-04 14:28:05 +01:00
Luca Bruno 6feab20733
test: fix enum_if compilation
Signed-off-by: Luca Bruno <lucab@debian.org>
2016-01-04 14:27:39 +01:00
Luca Bruno 73c950b99b
test: fix test_lsd compilation
Signed-off-by: Luca Bruno <lucab@debian.org>
2016-01-04 14:25:49 +01:00
Arvid Norberg 85a510d8d8 Merge pull request #357 from arvidn/disable-disk-full-test
disable disk-full test, because it's flaky
2016-01-04 00:36:53 -05:00
arvidn a0678240f3 forward port fixes from RC_1_0 2016-01-03 23:34:57 -05:00
arvidn 66c14e968b disable disk-full test, because it's flaky 2016-01-03 13:30:32 -05:00
Arvid Norberg 7282195ef0 Merge pull request #355 from arvidn/dht-add-node
simplify dht routing table add
2016-01-03 09:54:30 -05:00
Arvid Norberg 6965888fa8 Merge pull request #353 from aldenml/save-max_peers
Store dht_settings::max_peers in session state
2016-01-02 23:00:30 -05:00
arvidn d9278c3da4 merge RC_1_0 fix for python binding 2016-01-02 22:56:19 -05:00
arvidn d954ae1b18 simplify dht routing table add 2016-01-02 20:03:18 -05:00
Alden Torres b9a5525ab2 Store dht_settings::max_peers in session state 2016-01-02 11:49:07 -05:00
Alden Torres b20096f0db Comments typos 2016-01-02 11:46:10 -05:00
Arvid Norberg d97e200325 Merge pull request #352 from arvidn/dht-routing-table
split buckets when exceeding the next bucket's size
2016-01-02 00:46:11 -05:00
arvidn 07ddb010c5 split buckets when exceeding the next bucket's size, to make sure we split before risking discarding nodes because the next bucket is smaller 2016-01-02 00:45:44 -05:00
Arvid Norberg c6b75fa79e Merge pull request #351 from arvidn/dht-patch
DHT polishing
2016-01-01 17:20:16 -05:00
arvidn e3ba811ae4 improve name of m_timer in dht_tracker 2016-01-01 16:42:44 -05:00
arvidn 01e6b93854 simplify and improve unit test for distance_exp. make some immutable variables const in the DHT implementation. instead of waking up periodically just to check if it's time to refresh the DHT secret key, set the timer to only wake up to refresh the key. If we don't have a DHT observer (to ask for our external IP) or if we don't know our external IP, don't generate a node ID based on 0.0.0.0, just generate a random ID instead. Simplified and improved node replacement logic in the routing table a little bit 2016-01-01 16:42:37 -05:00
arvidn fb8d40a50c update libsimulator to fix msvc build 2015-12-31 21:31:15 -05:00
Arvid Norberg ffb78f0378 Merge pull request #312 from ssiloti/export-verify-message
export verify_message and incoming_error
2015-12-30 22:51:38 -05:00
Steven Siloti 30076218f8 entry is a class not a struct 2015-12-30 17:25:00 -08:00
Steven Siloti ac01ccc43a add templated wrapper around verify_message
It was too easy to forget to update the ret and size parameters
when the size of desec changed. With this change we now automatically
get the size of desc and enforce that ret has the same size.

It would be nice if we could use bdecode_node ret[static Size] from C99
but that is not widely supported.
2015-12-29 20:35:36 -08:00
Arvid Norberg b7ac7b6270 Merge pull request #347 from arvidn/fix-docs
fix docs makefile to build html by default.
2015-12-28 22:57:18 -05:00
arvidn a3526b4660 fix docs makefile to build html by default. fix the reference doc generator to strip TORRENT_FINAL macro 2015-12-28 19:50:02 -05:00
arvidn 448951af9c update libsimulator submodule 2015-12-28 19:48:58 -05:00
arvidn 1698dc75dc remove redundant boost::bind 2015-12-25 15:59:50 -05:00
Arvid Norberg d725844547 Merge pull request #345 from paulkernfeld/fix-python-example
Fix small bug in Python example code
2015-12-25 15:42:23 -05:00
Paul Kernfeld d0ff29bcfb Fix small bug in Python example code
A few dictionary keys needed to be quoted
2015-12-25 21:35:23 +01:00
arvidn fb9d788bf9 update libsimulator submodule 2015-12-23 23:04:09 -05:00
arvidn 9fd8b1d7c3 update libsimulator submodule 2015-12-23 21:52:11 -05:00
Arvid Norberg d4ba200365 Merge pull request #343 from arvidn/http-proxy-test
transition http proxy test for http_connection to the sim
2015-12-22 08:38:25 -05:00
arvidn 63c3ff61e2 update submodule 2015-12-22 01:26:49 -05:00
arvidn 197ca4e06d transition http proxy test for http_connection to the sim 2015-12-22 00:45:16 -05:00
Arvid Norberg 0647c396a5 Merge pull request #237 from arvidn/travis-docs
make travis build documentation
2015-12-20 12:43:42 -05:00
arvidn 8f7f7420f2 we don't use ditaa anymore 2015-12-20 12:41:22 -05:00
arvidn 4590d2c13c remove out-dated python script 2015-12-20 12:39:30 -05:00
arvidn b49a207d2a only print rst2html version when building documentation 2015-12-20 11:38:55 -05:00
arvidn 17e54422f2 don't build figures either. attempt to make documentation failures properly reported on travis 2015-12-20 02:26:07 -05:00
Arvid Norberg 03e90d45d8 Merge pull request #339 from arvidn/dht-storage-test
extend the unit test of dht_storage
2015-12-20 02:02:56 -05:00
arvidn 1a6792609d fix issue in gen_stats_doc.py and make travis only generate the .rst files since docutils is too old 2015-12-20 02:02:09 -05:00