Steven Siloti
bc369683df
handle short reads when exporting a file ( #990 )
...
handle short reads when exporting a file. Pieces in the part file are not guaranteed to be fully written so short reads need to be handled rather than asserting.
2016-08-07 16:04:29 -04:00
arvidn
354a866636
update changelog
2016-08-07 15:31:48 -04:00
Steven Siloti
d4296730d0
fix re-prioritizing a piece while it is downloading ( #987 )
...
update_piece_state does not expect that the piece's priority has also changed
since the last time the piece was updated. Make sure the piece's priority is
updated before trying to update the state.
2016-08-07 15:27:04 -04:00
Arvid Norberg
f144b64211
split up piece picker test ( #988 )
2016-08-06 13:49:23 -04:00
Arvid Norberg
71f5510d62
make the random function produce proper random distributions, based o… ( #981 )
...
make the random function produce proper random distributions, based on uniform_int_distribution of C++11. also clean up piece_picker's priority_range to return two results instead of taking pointers to out-parameters. fix recent pe-crypto regression exposed by this change
2016-08-06 13:18:48 -04:00
Alden Torres
7ea9e76b37
refactor for separation of clz software/hardware based ( #985 )
...
refactor for separation of clz software/hardware based
2016-08-05 15:51:37 -04:00
Arvid Norberg
1bae47479b
make settings_pack moveable ( #982 )
2016-08-05 00:28:03 -04:00
arvidn
bd4827db35
fix missing include
2016-08-03 22:10:38 -04:00
Alden Torres
fdfe69f414
fixed warnings and compilation issues ( #980 )
...
fixed warnings and compilation issues
2016-08-03 00:35:40 -04:00
Alden Torres
8fedfcdce6
more trivial cleanup ( #979 )
2016-08-02 17:58:15 -04:00
Alden Torres
3c9ed50d0b
some trivial cleanup ( #978 )
...
some trivial cleanup
2016-08-02 12:13:05 -04:00
Arvid Norberg
caa034b1ac
fix typo and add invariant check to piece_picker ( #977 )
...
fix typo and add invariant check to piece_picker
2016-08-02 07:20:13 -04:00
Arvid Norberg
5b230694e5
check autotools on travis ( #973 )
...
build and run tests with autotools on travis, and fix configure issues.
2016-08-02 00:46:15 -04:00
Alden Torres
0b3c64ee87
added TORRENT_EXPORT to avoid link weak symbol warning ( #975 )
2016-08-02 00:15:26 -04:00
Arvid Norberg
61031f1186
hack to allow timeout utp sockets that are about to be closed ( #976 )
2016-08-02 00:07:36 -04:00
Arvid Norberg
e54daa96dd
Merge pull request #974 from aldenml/fallthrough-warning-1.2
...
use of BOOST_FALLTHROUGH, typos and minor cleanup
2016-08-01 16:59:45 -04:00
Alden Torres
fddbb13338
minimum boost version required 1.54
2016-08-01 16:00:14 -04:00
Arvid Norberg
c948dc41af
Merge pull request #971 from arvidn/ftruncate-warnings-1.1
...
fix warnings of unused return values from ftruncate() calls
2016-08-01 13:27:56 -04:00
Alden Torres
e55a310e79
use of BOOST_FALLTHROUGH, typos and minor cleanup
2016-08-01 11:42:18 -04:00
arvidn
24dd6d0945
fix warning
2016-07-31 10:02:54 -04:00
arvidn
192559f245
fix warnings of unused return values from ftruncate() calls
2016-07-31 03:19:31 -04:00
Arvid Norberg
e368efe535
Merge pull request #970 from aldenml/bjam-windows-version-default-1.2
...
don't define _WIN32_WINNT if not under windows
2016-07-30 21:27:14 -04:00
Alden Torres
f795e88789
don't define _WIN32_WINNT if not under windows
2016-07-30 18:03:06 -04:00
arvidn
0126f6f2c6
fix timestamp arithmetic overflow
2016-07-30 00:38:17 -04:00
Arvid Norberg
c1ade2b75f
Merge pull request #965 from arvidn/hex-span
...
use span for to_hex and from_hex functions
2016-07-29 22:25:15 -04:00
Arvid Norberg
96203f3f6f
Merge pull request #968 from aldenml/test_utp-timeout-1.2
...
increase timeout in test_utp
2016-07-29 20:24:53 -04:00
arvidn
2bdeb9aa6b
fix build
2016-07-29 20:24:11 -04:00
Alden Torres
55fc0704ae
increase timeout in test_utp
2016-07-29 20:20:06 -04:00
arvidn
e5ecd73751
fix rebase
2016-07-29 18:47:05 -04:00
arvidn
66e328e2fd
fix build
2016-07-29 18:42:18 -04:00
arvidn
83dba91168
use span for to_hex and from_hex functions
2016-07-29 18:42:18 -04:00
Arvid Norberg
1d514b3f99
Merge pull request #961 from ssiloti/dht-sanitizing
...
remove DHT nodes which change their id
2016-07-29 18:00:22 -04:00
Steven Siloti
0343bb382e
always check m_log before using it
2016-07-29 13:32:28 -07:00
Steven Siloti
44ce5c71e7
cleanup ip logging
2016-07-28 20:08:24 -07:00
Alden Torres
a88c733f92
mark encryption_handler with TORRENT_EXTRA_EXPORT and minor cleanup ( #963 )
2016-07-28 14:57:26 -04:00
Arvid Norberg
633d0621f8
update required boost version and ax_boost_base.m4 ( #937 )
...
bump boost version requirement to 1.53, update ax_boost_base.m4
2016-07-28 08:34:22 -04:00
Arvid Norberg
83c4a5ed37
minor cleanup to aux io functions ( #962 )
2016-07-28 08:33:38 -04:00
Alden Torres
68b1fc2fe8
fixed span::fist logic and minor cleanup ( #960 )
2016-07-28 01:54:57 -04:00
Steven Siloti
6ebc61cef9
reject nodes with our id after checking for an existing entry
...
This allows us to evict nodes which start reporting our id as theirs.
2016-07-27 21:10:34 -07:00
Steven Siloti
9d75198f7f
re-ping nodes in a bucket when one changes id
2016-07-27 21:10:34 -07:00
Steven Siloti
a414e4c3fa
remove nodes which change their id
...
This is based on a suggestion from the8472 to prevent malicious nodes from
polluting the routing table.
https://github.com/the8472/mldht/blob/sanitizing-docs/docs/sanitizing-algorithms.rst
2016-07-27 21:10:33 -07:00
Alden Torres
98918d61f5
removed const_interval, mutable_buffer and const_buffer types ( #956 )
...
removed const_interval, mutable_buffer and const_buffer types
2016-07-27 22:31:08 -04:00
Calum Lind
6c0f4cc082
Fix reoccurrence of py bindings -Wstrict-prototype warning ( #959 )
...
* Recent commit df368c2d15
has allowed the -Wstrict-prototype flag to
once again be passed to gcc so this fix removes all occurrences not just from 'OPT'.
2016-07-27 19:19:24 -04:00
Calum Lind
f52a37fe86
[ #766 ] Fix building bindings with python-dbg ( #958 )
...
* In ax_python_devel grep and remove '[xxxx refs]' if found in python-dbg output so that
it will still catch any errors redirected to stdout.
* In ax_boost_python change the specific _BOOST_PYTHON_MODULE test for the old version that
used a generic _main method test.
2016-07-27 18:16:05 -04:00
Steven Siloti
7a95ba636e
add test for updating a dht node's id ( #953 )
2016-07-27 02:38:48 -04:00
Arvid Norberg
69f82c5274
add support for entry::preformatted to python binding ( #952 )
2016-07-27 00:15:26 -04:00
Alden Torres
7caa99d6f1
__cplusplus cleanup ( #951 )
...
cleanup
2016-07-26 18:30:19 -04:00
Arvid Norberg
634c2bce60
Span conversion ( #944 )
...
complete http_parser transition to use span. make xml_parse use span. remove buffer::interval. convert some of receive buffer management to use span<>
2016-07-26 02:15:31 -04:00
arvidn
680a09cfa5
merged RC_1_1 into master
2016-07-26 02:14:58 -04:00
terry zhao
48ca20968e
fix value of current_tracker when all tracker failed ( #932 )
...
fix torrent_status::current_tracker when all trackers fail.
2016-07-26 01:13:28 -04:00