Arvid Norberg
|
fef1b947f3
|
fix issue in self-connection detection introduced with the change to generate unique peer-ids for each connection. Now, the torrent keeps track of all of our peer-ids generated for outgoing (bittorrent) connections, and we check them against incoming peers' peer-ids
|
2018-08-19 22:19:53 +02:00 |
Steven Siloti
|
92f1937b97
|
fix typo in #if tests for TORRENT_DISABLE_ENCRYPTION
|
2018-07-29 09:04:16 +02:00 |
Arvid Norberg
|
b3856d3027
|
narrow the scope affected by TORRENT_DISABLE_EXTENSIONS to only disable the user extensions, but always support the extension message and the built-in extensions, like lt_donthave and seed_mode
|
2018-07-26 09:31:49 +02:00 |
arvidn
|
e92cf18340
|
fix some warnings around unused variables, dead stores, potentially dereferencing nullptr and calling virtual functions from constructor
|
2018-07-20 01:03:16 +02:00 |
arvidn
|
e45df614fe
|
improve type safety of internal leave_seed_mode() function
|
2018-07-08 17:32:50 +02:00 |
Alden Torres
|
f139afc1ad
|
minor code refactor, cleanup and typo in peer related code
|
2018-06-23 23:11:48 +02:00 |
Alden Torres
|
03971be80b
|
some refactor, more use of auto and const in peer_connection.cpp (#3105)
|
2018-06-16 17:22:04 +02:00 |
Arvid Norberg
|
b26467c04e
|
deprecate network-threads setting
|
2018-06-10 19:34:07 +02:00 |
arvidn
|
fe612ca167
|
replace the TORRENT_CFG ABI check with inline namespaces around the symbol that can change ABI based on build configuration options
|
2018-05-13 19:25:17 +02:00 |
arvidn
|
8bb1cd2b46
|
merged RC_1_1 into master
|
2018-05-12 15:37:53 +02:00 |
arvidn
|
f0227451a6
|
merged RC_1_1 into master
|
2018-04-13 01:47:41 +02:00 |
Alden Torres
|
9b1e79660f
|
removed unnecessary parentheses around min/max, added some const modifier (#2926)
|
2018-04-11 15:19:00 +02:00 |
arvidn
|
aaf9304a3b
|
update year in copyright header
|
2018-04-09 09:04:33 +02:00 |
Arvid Norberg
|
357217326d
|
some cleanups
|
2018-04-05 12:59:35 +02:00 |
Alden Torres
|
5b922072e9
|
avoid calls to .address() when looking for endpoint protocol (#2892)
using is_v4 and is_v6 where possible
|
2018-04-01 13:48:17 +02:00 |
arvidn
|
e126d7bce0
|
move socket_type into aux-namespace
|
2018-01-29 08:33:45 +01:00 |
arvidn
|
9ac394f5b0
|
turn piece picker option flags into a proper type
|
2018-01-29 03:01:17 +01:00 |
arvidn
|
65fef972a2
|
apply some c++11 modernization
|
2018-01-11 04:51:39 -05:00 |
pavel.pimenov
|
5a772325a0
|
redundant is_finished(block.block)
|
2018-01-09 03:20:28 -05:00 |
arvidn
|
3a9861e237
|
complete the error handling test and make it part of the default simulation test suite. It will run a file transfer between two clients repeatedly, each time cause another memory allocation fail, until every single memory allocation has failed once. Any invariant check failure, assertion or signal will cause the test to fail
|
2018-01-08 04:44:52 -05:00 |
arvidn
|
88643dd121
|
fix m_in_constructor assert for peer_connection (if the peer connection is constructed, but bt_peer_connection constructor fails, it needs to be cleared). Fix an invariant in session on ungraceful shutdown. Make test framework a bit more robust
|
2018-01-06 14:29:20 -05:00 |
arvidn
|
0731200149
|
block_size is a constant, no need in passing it around as a variable
|
2018-01-03 08:45:25 -05:00 |
arvidn
|
1884061418
|
revert redundant wrapping some function calls with error handlers. Error handling is already built into the handler allocator
|
2017-12-27 21:22:34 +01:00 |
arvidn
|
347555ea8f
|
handle errors in peer_connection
|
2017-12-26 10:39:54 +01:00 |
arvidn
|
753826cbb8
|
merger RC_1_1 into master
|
2017-12-23 18:15:01 +01:00 |
arvidn
|
67be35739c
|
:attempt to fix disconnections when torrents enter upload mode due to failures
|
2017-12-23 09:24:26 +01:00 |
arvidn
|
55babc57e6
|
merged RC_1_1 into master
|
2017-12-15 17:18:27 +01:00 |
arvidn
|
d1a63cd781
|
fix build against boost-1.66, specifically the boost.asio changes
|
2017-12-15 11:29:53 +01:00 |
arvidn
|
5ce798197c
|
merged RC_1_1 into master
|
2017-12-02 11:39:23 +01:00 |
Alden Torres
|
f2681412e7
|
more use of const in peer_connection.cpp and minor code refactor
|
2017-11-28 09:45:40 +01:00 |
Arvid Norberg
|
e15f466137
|
fix issue with receiving interested before metadata (#2557)
|
2017-11-25 15:31:37 +01:00 |
arvidn
|
521587c026
|
make sure the cork destructor doesn't leak exceptions
|
2017-11-12 23:03:54 +01:00 |
arvidn
|
254f813626
|
factor out handler allocator and reuse it for posting deferred peer removals on torrents
|
2017-11-11 10:41:39 +01:00 |
arvidn
|
d4864b8b18
|
some noexcept fixes
|
2017-11-10 09:05:15 +01:00 |
arvidn
|
6785046c2f
|
introduce a download_priority_t type, for uniform an type-safe piece- and file priorities
|
2017-11-02 08:20:21 +01:00 |
arvidn
|
d22c44c057
|
fix kludge and down-cast to send upload_only. Promote upload-only to a top-level peer feature
|
2017-09-23 07:51:51 -07:00 |
Alden Torres
|
5c91301e6d
|
more use of auto, const, size, minor code refactor and cleanup
|
2017-09-18 23:59:41 +02:00 |
arvidn
|
93bb84d94c
|
some random cleanup
|
2017-09-13 08:28:46 +02:00 |
arvidn
|
55228756e5
|
make disk job flags type safe
|
2017-09-10 08:56:52 +02:00 |
Arvid Norberg
|
1075ae3b8d
|
remove session pool allocator and use the buffer class instead (#2274)
simplify append_buffer by using size() to determine size of the buffer. make the move explicit in chained_buffer::init_buffer_entry
|
2017-08-28 11:37:53 +02:00 |
arvidn
|
f9c45db942
|
make bandwidth state flags use type-safe flags
|
2017-07-17 19:03:42 -07:00 |
arvidn
|
06070ea499
|
convert block request flags to type-safe flags
|
2017-07-17 17:56:07 -07:00 |
arvidn
|
c4659bc345
|
convert peer_flags and peer_source_flags to type-safe flags
|
2017-07-17 10:22:32 -07:00 |
arvidn
|
f85c01cc0a
|
merged RC_1_1 into master
|
2017-06-21 00:51:43 -04:00 |
arvidn
|
ff454a92d4
|
unify some operation-enums and strings to use operation_t
|
2017-06-18 07:31:45 -04:00 |
arvidn
|
53cbb607d0
|
first steps towards spell checking documentation
|
2017-06-17 22:59:57 -04:00 |
arvidn
|
1fd350cf60
|
make operation_t an enum class, for type safety
|
2017-06-15 07:00:06 -04:00 |
arvidn
|
3f09d16e3c
|
defer reconnecting peers to after the second_tick loop (to avoid mutating m_connections while iterating over it)
|
2017-06-14 10:35:50 -04:00 |
arvidn
|
4de9f6a75b
|
remove requester parameter to disk read jobs
|
2017-06-08 12:38:25 +02:00 |
Steven Siloti
|
40cfceb994
|
restore find_plugin API (#2026)
|
2017-05-24 23:29:21 -04:00 |