Steven Siloti
|
e5be30157f
|
set port in handshake based on source address (#3172)
|
2018-07-15 21:15:04 +02:00 |
Steven Siloti
|
961cf62cad
|
dht: announce with per-interface listen port
|
2018-07-12 08:36:57 +02:00 |
arvidn
|
b750b6cc2c
|
deprecate (and disable) the force-proxy setting. Instead, always use the proxy when set, never fall back on circumventing it
|
2018-07-08 18:26:47 +02:00 |
Alden Torres
|
2c5da2778a
|
more lint oriented code refactor/cleanup
|
2018-06-29 13:27:29 +02:00 |
Steven Siloti
|
fbaa1afd62
|
return a vector of mapping ids from add_port_mapping
|
2018-06-07 18:18:31 -07:00 |
Steven Siloti
|
f6720e31ed
|
don't re-map all listen sockets when changing listen_interfaces
New sockets will be mapped regardless of the remap parameter. Requesting
full re-mapping just creates unecessary network traffic.
|
2018-06-07 18:16:08 -07:00 |
Steven Siloti
|
78be52112f
|
create a natpmp instance for each listen socket
|
2018-06-07 18:16:08 -07:00 |
Alden Torres
|
6c4869f044
|
moved instantiate_connection to aux namespace
|
2018-05-29 09:25:25 +02:00 |
arvidn
|
534276e7a5
|
refactor to use the utility function for bind_socket_to_device() instead of using the bind_to_device socket option directly, to make it best effort. include operation enum in udp_error alert.
|
2018-05-23 12:11:04 +02:00 |
Steven Siloti
|
92a7188163
|
only start a new accept request on new listen sockets
Existing sockets already have an outstanding accept.
Also fix mapping new listen sockets when re-mapping is not requested.
|
2018-05-22 11:06:33 +02:00 |
Arvid Norberg
|
17055ad4d1
|
don't enable reuse-address for UDP sockets, as it will always succeed and not get any incoming packets. It's better to detect a port conflict and try a different port. Also implement port-retry logic for the UDP sockets
|
2018-05-13 22:36:02 +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
|
ddd1168296
|
don't attempt to make uTP connections if we don't have any outgoing UDP sockets
|
2018-05-12 13:34:58 +02:00 |
arvidn
|
4d17e0132e
|
fix empty outgoing interfaces for UDP sockets
|
2018-05-12 13:34:58 +02:00 |
arvidn
|
8621477239
|
merged RC_1_1 into master
|
2018-04-28 14:36:24 +02:00 |
Xiyue Deng
|
21d8e9e26b
|
Add missing header <cstdarg> for va_list.
* Fix building on OpenBSD.
|
2018-04-24 23:09:25 -04: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 |
arvidn
|
a7406de2b8
|
remove the global cache of the current time, just use clock::now() instead
|
2018-04-07 21:43:18 +02:00 |
Alden Torres
|
0d9862a8dd
|
fix wrong variable name
|
2018-04-04 19:41:03 +02:00 |
Arvid Norberg
|
16f1deb3ec
|
merged RC_1_1 into master
|
2018-04-04 15:28:33 +02:00 |
arvidn
|
98d5313598
|
don't perform DNS lookups for the DHT bootstrap unless DHT is enabled
|
2018-04-01 23:53:12 +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
|
6a2df1034a
|
add some asserts and checks preventing IPv6 addresses to make it into libtorrent when IPv6 support is disabled
|
2018-03-31 14:17:06 +02:00 |
arvidn
|
9696082355
|
merged RC_1_1 into master
|
2018-02-25 09:36:12 +01:00 |
arvidn
|
1ede34da8a
|
undo the patch to restore incoming TCP connections over SOCKS5
|
2018-02-19 00:01:42 +01:00 |
arvidn
|
a0a63341c7
|
fix haiku build
|
2018-02-04 19:10:43 +01:00 |
arvidn
|
a33c81ad33
|
shave down session_interface by one function, reduce the dependencies between torrent and session
|
2018-01-29 03:00:59 +01:00 |
arvidn
|
308cbfe097
|
merged RC_1_1 into master
|
2018-01-27 02:36:55 +01:00 |
arvidn
|
bc4d53c71f
|
restore support for incoming connections over SOCKS5 (disabled by default)
|
2018-01-25 09:14:14 +01:00 |
arvidn
|
4fef787212
|
merged RC_1_1 into master
|
2018-01-24 00:37:05 +01:00 |
arvidn
|
efd096d879
|
use unique peer_ids per connection
|
2018-01-23 16:40:16 +01:00 |
arvidn
|
785fffd976
|
make url_random take a span
|
2018-01-15 01:49:42 -05:00 |
arvidn
|
a67eb2f059
|
fix tracker connection bind issue for IPv6 trackers
|
2018-01-14 06:47:13 -05:00 |
arvidn
|
65fef972a2
|
apply some c++11 modernization
|
2018-01-11 04:51:39 -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 |
Alden Torres
|
98ade28237
|
using make_address instead of deprecated from_string when boost>=1.66 (#2659)
using make_address instead of deprecated from_string when boost>=1.66
|
2018-01-04 04:48:22 -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
|
aae12250ae
|
support forced shutdown/destruction of torrent objects
|
2017-12-28 14:11:55 +01:00 |
arvidn
|
5f0c9a0c1d
|
improve error handling during session shutdown
|
2017-12-28 13:52:07 +01:00 |
arvidn
|
c1abafc0cc
|
reserve space in the undead peers list up-front, to not have to allocate memory when disconnecting
|
2017-12-27 21:24:16 +01:00 |
arvidn
|
5ebd05b047
|
handle serious errors in on_accept_connection handler
|
2017-12-27 21:23:25 +01:00 |
arvidn
|
ab9fcdf029
|
reserve space in torrent lists up-front, to make transitioning list membership unable to fail
|
2017-12-27 15:42:46 +01:00 |
arvidn
|
40292a1d51
|
don't heap-allocate handlers for incoming UDP packets
|
2017-12-24 11:22:30 +01:00 |
arvidn
|
753826cbb8
|
merger RC_1_1 into master
|
2017-12-23 18:15:01 +01:00 |
arvidn
|
62bf524e75
|
disable DHT logging with the TORRENT_DISABLE_LOGGING macros as well
|
2017-12-23 12:01:18 +01:00 |
sledgehammer_999
|
94f4e88e05
|
Fix local network address mappings.
|
2017-12-20 11:28:36 +01:00 |
arvidn
|
a54f76d5df
|
deprecate status_code from tracker_error_alert (it's already part of the error_code), simplify code a bit
|
2017-12-19 00:55:51 +01:00 |