arvidn
e2784df13c
factor out file progress tracking from the torrent class
2015-06-28 22:47:11 -04:00
arvidn
a754559ac6
improve logging aroud binding listen sockets
2015-06-28 09:13:59 -04:00
arvidn
c3347de3bf
attempted fix for cpu_id issues on ubuntu
2015-06-26 23:23:08 -04:00
Arvid Norberg
8dbef2d32a
Merge pull request #11 from aldenml/announce-get_peers-refactor
...
Refactor to expose a more convenient get_peers function as part of the DHT api.
2015-06-25 00:33:15 -04:00
Alden Torres
5c8c9cd653
Refactor to expose a more convenient get_peers function as part of the DHT api.
...
Now announce (a particular case of get_peers DHT operation) uses the function get_peers.
2015-06-24 21:22:24 -04:00
Mikhail Titov
77ca1ac16f
Quadruple handshake timeout for i2p
2015-06-24 19:40:17 -05:00
arvidn
4054b4374b
whitespace
2015-06-22 23:32:02 -04:00
arvidn
130fc2d640
forward port logging patch from RC_1_0
2015-06-22 02:14:17 -04:00
arvidn
9ff9965dbd
fix typo
2015-06-21 20:49:55 -04:00
arvidn
08016494a9
split up test_http_connection into smaller test cases
2015-06-21 12:41:50 -04:00
arvidn
8b66fbe194
fix bug in previous commit
2015-06-20 18:17:49 -04:00
arvidn
665b553941
merged logging patch from RC_1_0
2015-06-20 17:51:59 -04:00
arvidn
ad8971d6da
fix typo
2015-06-20 16:42:18 -04:00
arvidn
3755a77a64
attempt to trouble shoot missing backtraces on linux
2015-06-20 16:36:23 -04:00
arvidn
c2eaa26ce6
whitespace
2015-06-20 13:44:07 -04:00
arvidn
900330992e
merge documentation update to github from RC_1_0
2015-06-20 00:13:38 -04:00
arvidn
a500ff57be
improve logging of the choker and reliability of the test_auto_unchoke
2015-06-19 01:43:09 -04:00
arvidn
8959971dd3
merge http scrape fix from RC_1_0
2015-06-18 01:05:36 -04:00
arvidn
8d408c4c86
add shortcut in async resolver for raw IPs.
2015-06-16 23:45:05 -04:00
Mikhail Titov
da282fdde0
Don't break SAM connection if error occurs
...
This fixes #3
2015-06-16 02:03:25 -05:00
arvidn
323af56cc2
update interest when changing upload-only mode
2015-06-16 01:24:35 -04:00
Arvid Norberg
75fa65f922
Merge pull request #4 from ssiloti/master
...
Release alert manager mutex before notifying plugins
2015-06-15 22:11:07 -04:00
arvidn
bd2bcf12bc
fix bug on write-only disk errors (it's not supposed to stop the torrent)
2015-06-15 02:27:09 -04:00
Steven Siloti
acf423d422
Release alert manager mutex before notifying plugins
...
A plugin might respond to an alert by doing something which itself generates
an alert. This has become increasingly likely with the use of alerts for
logging. This would cause a deadlock due to trying to recursively aquire the
alert manager mutex.
2015-06-14 14:07:34 -07:00
arvidn
f91799006a
fix make_shared invocation
2015-06-14 16:42:52 -04:00
arvidn
5cb095f6d2
support using 0 disk threads (to perform disk I/O in network thread)
2015-06-14 16:00:04 -04:00
arvidn
0d6e65ec24
improve reliability of some of the unit tests
2015-06-10 01:22:01 -04:00
arvidn
ac04ee5ef3
fix typo in settings_pack
2015-06-07 09:23:04 -04:00
arvidn
aa6598b2e6
don't return an internal session_settings type from the session, return a settings_pack instead
2015-06-07 00:23:30 -04:00
arvidn
9af8841244
remove some unnecessary asio typedefs in the libtorrent namespace, just pull ip::tcp and ip::udp
2015-06-06 13:49:18 -04:00
arvidn
41533205be
drop support for boost 1.35 and fix some more references to the asio namespace
2015-06-06 02:10:53 -04:00
arvidn
389ffc622c
don't pull in the asio namespace in libtorrent. refer to it by boost::asio
2015-06-06 01:24:25 -04:00
arvidn
48bc00cbb7
attempt to make unit tests more deterministic
2015-06-05 23:02:07 -04:00
arvidn
15dd15d0d6
fix no-deprecated build. extend .travis.yml to build the 3 test configurations too. rename README to README.rst
2015-06-05 02:31:52 -04:00
Arvid Norberg
d43f7b56a2
update copyright year
2015-06-03 05:18:48 +00:00
Arvid Norberg
b5a30a65ae
merged changes from RC_1_0
2015-06-03 05:12:54 +00:00
Arvid Norberg
4e1e53f066
turn some more members of session_impl to private
2015-06-03 04:33:20 +00:00
Arvid Norberg
0351326add
separate the main thread and the io_service from session_impl. The io_service object is now simply run() in the main thread, all initialization is done by posting messages to it. This generalizes session_impl to some degree, enables future expansion to run in multiple threads (although, the peers and torrents don't support this). This patch also makes it possible to pass in a third party io_service to the session, but at this point that's mostly useful for tests, as it's not well supported
2015-06-03 03:04:44 +00:00
Arvid Norberg
d8c0632c78
add some bdecoding unit tests
2015-06-02 03:06:48 +00:00
Arvid Norberg
d9945f6f50
merged fix from RC_1_0
2015-06-02 01:29:05 +00:00
Arvid Norberg
5d6cba438d
merged changes from RC_1_0
2015-06-02 01:14:52 +00:00
Arvid Norberg
b0eabd532c
some test fixes
2015-05-31 16:14:46 +00:00
Arvid Norberg
91197005e9
more msvc fixes
2015-05-31 09:02:42 +00:00
Arvid Norberg
34f6b1ca19
merged RC_1_0 into trunk
2015-05-30 17:41:38 +00:00
Arvid Norberg
0aca01543b
simplify dht logging
2015-05-30 06:31:03 +00:00
Arvid Norberg
945eef4c4d
some dht_tracker clean up
2015-05-30 04:37:12 +00:00
Arvid Norberg
9b0313bd8e
hold settings_pack by shared_ptr when passing it across thread boundaries. don't allocate it on the heap redundantly
2015-05-29 05:27:53 +00:00
Arvid Norberg
e44c8e9002
optimize logging of DHT packets by deferring copying and printing, to only do it if the alert category is enabled
2015-05-28 20:36:22 +00:00
Arvid Norberg
27cbfa164e
minor cleanup
2015-05-28 14:46:12 +00:00
Arvid Norberg
7f5aff9823
don't trigger recalculating auto-managed unconditionally when adding a new torrent, only in the case where it will most likely be started right away
2015-05-27 20:21:50 +00:00
Arvid Norberg
06bf225237
fix release build and tune want_tick
2015-05-26 20:09:19 +00:00
Arvid Norberg
09bc072c31
inactive/auto managed fixes. fix client_test key input
2015-05-26 18:39:49 +00:00
Arvid Norberg
c6f8dd408a
optimize recalculate auto-managed
2015-05-25 21:46:42 +00:00
Arvid Norberg
9856a1fe0c
break out more tests from test_primitives
2015-05-23 01:38:47 +00:00
Arvid Norberg
0052fa6c19
some cleanup to dht observers (don't expose internals)
2015-05-22 02:42:26 +00:00
Arvid Norberg
0de44067aa
fix warnings
2015-05-19 04:59:31 +00:00
Arvid Norberg
607e708bc4
fix warnings
2015-05-19 03:13:49 +00:00
Arvid Norberg
d18495eb39
support a NULL dht_observer again
2015-05-19 00:48:04 +00:00
Arvid Norberg
051ca6b22c
fix warnings
2015-05-18 05:32:18 +00:00
Arvid Norberg
9ee98b3ed1
fix build warnings
2015-05-18 05:04:55 +00:00
Arvid Norberg
e7d369646d
fix gcc warnings
2015-05-18 01:30:32 +00:00
Arvid Norberg
71ee44ae5e
fix build issue, some warnings
2015-05-17 23:32:13 +00:00
Arvid Norberg
88fe6eba9c
fix issues introduced in dht logging patch
2015-05-17 20:59:18 +00:00
Arvid Norberg
be60dfc0a9
minor whitespace cleanup
2015-05-17 18:59:35 +00:00
Arvid Norberg
9597dcda87
throw when packet_buffer fails to allocate memory
2015-05-17 15:23:39 +00:00
Arvid Norberg
c871610408
fix bug in DHT logging. clean up some whitespace
2015-05-17 02:00:43 +00:00
Arvid Norberg
58ae099cf8
clean up disk_io_job a bit to avoid old-style casts
2015-05-16 20:41:37 +00:00
Arvid Norberg
99de70604a
remove dht-verbose logging build configuration. tie it to the main logging configuration (which now is on by default) and make it less costly when dht logging alerts are disabled
2015-05-16 19:29:49 +00:00
Arvid Norberg
12c9d3de26
fix more warnings
2015-05-16 18:35:47 +00:00
Arvid Norberg
6a87dc7d84
fix some warnings
2015-05-16 16:24:11 +00:00
Arvid Norberg
2bf4519bee
make the torrent hold a pointer to the ip_filter instead of relying on a session reference
2015-05-16 06:33:37 +00:00
Arvid Norberg
e7f9f35556
fix mistake in download_queue_time
2015-05-13 00:02:01 +00:00
Arvid Norberg
5e07ff857e
remove residual geoip cruft
2015-05-11 00:49:34 +00:00
Arvid Norberg
b418aeb466
merged fixes from RC_1_0
2015-05-10 23:00:23 +00:00
Arvid Norberg
494b425ea1
fix warnings and a peer logging bug
2015-05-10 18:38:10 +00:00
Arvid Norberg
0029ac62a8
add unit test for extract_peer_info
2015-05-10 18:24:38 +00:00
Arvid Norberg
242dad0743
fix dht build
2015-05-10 18:24:09 +00:00
Arvid Norberg
2819d5f68e
remove the remains of the dht logging
2015-05-10 05:28:50 +00:00
Arvid Norberg
1357fd5265
clean up usage of printf attribute (encapsulate it in a macro)
2015-05-10 05:11:51 +00:00
Arvid Norberg
b60934288b
turn DHT logging into alerts instead of writing to a file
2015-05-10 04:54:02 +00:00
Arvid Norberg
ca581f2258
rename dht::node_impl -> dht::node, since this hasn't been a pimpl for quite a while
2015-05-09 19:00:22 +00:00
Arvid Norberg
6557910c7f
remove the DHT's last dependency on session_impl
2015-05-09 18:06:02 +00:00
Arvid Norberg
b4a6a14dfb
clean up utf8 conversion wrapper a bit, to not rely on dead-code elimination in constant conditions
2015-05-09 13:58:32 +00:00
Arvid Norberg
a83dcbaaf0
removed access-log build option and log parser. added incoming_request_alert. This feature can now be implemented by clients
2015-05-09 03:04:08 +00:00
Arvid Norberg
ddfef97696
don't use iostream in dht routing table debug logging
2015-05-08 05:21:26 +00:00
Arvid Norberg
202b4921b6
merged changes from RC_1_0
2015-05-08 04:28:24 +00:00
Arvid Norberg
4b585dcc0e
minor cleanup and fix no-deprecated build
2015-05-06 01:11:54 +00:00
Arvid Norberg
db4a9962e9
take const references where we can in magnet_uri
2015-05-05 05:44:42 +00:00
Arvid Norberg
f90537c52d
fix some more coverity issues and add more todo comments
2015-05-05 02:32:14 +00:00
Arvid Norberg
8fdacf9534
address coverity issues and build issue with non atomic 64 bit operations
2015-05-03 22:21:19 +00:00
Arvid Norberg
4a304273fd
fix some coverity issues
2015-05-03 03:28:39 +00:00
Arvid Norberg
4f216dece3
factor out strings of peer logs to be enums instead, in peer_log_alert
2015-05-03 02:53:54 +00:00
Arvid Norberg
ab0c97755e
merged fixes from RC_1_0
2015-04-29 05:48:09 +00:00
Arvid Norberg
0d72163a56
fix coverity warnings
2015-04-29 05:46:35 +00:00
Arvid Norberg
a1dbba7cf4
make clear_read_cache() code less confusing
2015-04-29 05:11:55 +00:00
Arvid Norberg
8aa3c22796
fix coverity issues
2015-04-29 04:05:29 +00:00
Arvid Norberg
42120014d0
merged changes from RC_1_0
2015-04-28 04:01:40 +00:00
Arvid Norberg
2fff222235
silence some warnings on msvc
2015-04-27 02:21:12 +00:00
Arvid Norberg
f97168241f
build fix
2015-04-27 00:56:58 +00:00
Arvid Norberg
c6a4bd8dec
add missing cpuid.cpp
2015-04-26 21:54:45 +00:00
Arvid Norberg
d128d36faa
fix cpuid use (apparently it's not appropriate to use in an inlined function)
2015-04-26 18:46:45 +00:00
Arvid Norberg
a15bc13392
build fixes
2015-04-26 13:38:56 +00:00
Arvid Norberg
93a19b44c0
fix another format string issue and add comments to kademlia
2015-04-26 06:25:08 +00:00
Arvid Norberg
a0e6b52a3f
fix msvc build issues
2015-04-26 01:45:23 +00:00
Arvid Norberg
2fb1a0f3c7
fix msvc build issue
2015-04-26 01:25:45 +00:00
Arvid Norberg
f0336017d1
fix gcc warnings and missing header files in makefiles
2015-04-26 00:51:44 +00:00
Arvid Norberg
821e34c795
fix examples build. fix print formatting bugs. fix some gcc warnings
2015-04-25 04:22:51 +00:00
Arvid Norberg
f7e4f83469
separate out session_stats into its own header. silences warning and cleans up
2015-04-25 02:12:02 +00:00
Arvid Norberg
8e08cd7639
deprecate use of boost.date_time. use boost.chrono instead
2015-04-25 01:40:39 +00:00
Arvid Norberg
3bf9fa8fca
move out merkle functions into their own file and test
2015-04-24 06:06:41 +00:00
Arvid Norberg
c19c6b2cc1
fix some warnings
2015-04-24 05:37:17 +00:00
Arvid Norberg
924fb5d03c
merged fixes from RC_1_0
2015-04-24 04:42:26 +00:00
Arvid Norberg
31a87c26f0
move another unused time function into the one place it was used from (which will be removed)
2015-04-24 04:08:08 +00:00
Arvid Norberg
3ea67e2bf5
move time_now_string out to the unit test library (basically unused in libtorrent itself)
2015-04-24 03:48:08 +00:00
Arvid Norberg
91e66f65d3
removed unused argument (and silence warning)
2015-04-23 06:12:53 +00:00
Arvid Norberg
cc999d85ae
fix typo in alert_manager
2015-04-23 05:34:34 +00:00
Arvid Norberg
87c46a144d
fix more warnings and some build issues
2015-04-22 04:24:45 +00:00
Arvid Norberg
a1f59f6cf1
make puff const correct instead of const-casting
2015-04-22 02:11:12 +00:00
Arvid Norberg
3664c7c137
fix more warnings and bare_bones build
2015-04-22 00:59:35 +00:00
Arvid Norberg
0b063de9ff
fix more warnings
2015-04-21 04:30:34 +00:00
Arvid Norberg
3951377d95
fix include paths for warning push and pop headers
2015-04-21 01:16:28 +00:00
Arvid Norberg
f5629eb403
cleanup and fixing of more warnings
2015-04-21 00:23:00 +00:00
Arvid Norberg
4d15f1410f
fix warnings, some clean-up and todo comments
2015-04-20 04:52:49 +00:00
Arvid Norberg
4fd230dbe5
fix build and some warnings
2015-04-20 00:01:27 +00:00
Arvid Norberg
bf32895de9
fix asserts=off build
2015-04-19 13:18:54 +00:00
Arvid Norberg
21751347bc
more warnings fixes and cleanup
2015-04-19 06:28:21 +00:00
Arvid Norberg
51e86ca2d5
more warning fixes and cleanup
2015-04-18 22:00:27 +00:00
Arvid Norberg
60d1b8fa7c
fix gcc build
2015-04-18 21:21:22 +00:00
Arvid Norberg
23536dcc42
fix a few warnings and GCC build
2015-04-18 13:56:36 +00:00
Arvid Norberg
408232cfc8
raise warning level. fix a few of them. filter out warnings from boost
2015-04-18 02:33:39 +00:00
Arvid Norberg
1b20755c03
fix inlude in resolve_links.cpp
2015-04-18 02:00:03 +00:00
Arvid Norberg
8ac5a32548
improve deprecation macros. increase default warning level. fix deprecation warnings while building libtorrent itself (gcc and clang)
2015-04-17 01:49:49 +00:00
Arvid Norberg
1faf2e201f
inversed TORRENT_LOGGING build config to enable logging by default. It's now disabled by TORRENT_DISABLE_LOGGING
2015-04-17 01:15:33 +00:00
Arvid Norberg
5f0b941a54
add more information to the invalid_request_alert and be more forgiving about requests from peers that have not sent an interested-message first
2015-04-13 01:34:19 +00:00
Arvid Norberg
8200f33925
fix gcc build issue in test_peer_list
2015-04-13 00:50:55 +00:00
Arvid Norberg
208fbe8545
extend test_peer_list
2015-04-12 06:39:16 +00:00
Arvid Norberg
baaeac7809
extend some unit tests. primarily test_alert_manager and fixed a bug in alert_manager
2015-04-11 18:44:43 +00:00
Arvid Norberg
0cedddbba0
fix build with no deprecated functions
2015-04-11 15:31:36 +00:00
Arvid Norberg
b3e061ca94
clean up of some test and fix warnings
2015-04-11 15:25:24 +00:00
Arvid Norberg
fb40cb484e
merged changes from RC_1_0
2015-04-11 14:17:33 +00:00
Arvid Norberg
af57bdfe6a
clean up use of error categories in file.cpp
2015-04-10 23:19:47 +00:00
Arvid Norberg
10cbe7f969
log fewer false positive udp tracker errors (when we can't find the transaction ID)
2015-04-10 04:20:20 +00:00
Arvid Norberg
c47699005f
merge fixes from RC_1_0
2015-04-10 03:25:02 +00:00
Arvid Norberg
bb48b6e83c
eliminate one more session dependency in peer_connection
2015-04-10 01:50:42 +00:00
Arvid Norberg
06135941f3
be a bit more lenient with invalid metadata requests
2015-04-09 04:24:13 +00:00
Arvid Norberg
20aa53953c
fix etensions being passed all alerts
2015-04-07 00:50:21 +00:00
Arvid Norberg
6d09050d08
fix build without deprecated functions
2015-04-06 00:06:26 +00:00
Arvid Norberg
b07b208a4a
rate limit how often recalculate_auto_managed can be called (it's expensive)
2015-04-05 19:35:58 +00:00
Arvid Norberg
2a3a34bf8d
fix warnings in alert_manager and fix test_resolve_links for windows
2015-04-04 19:11:14 +00:00
Arvid Norberg
013ed36f09
landed alert_queue feature branch into trunk
2015-04-03 20:15:48 +00:00