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
|
f9c9d0ad0d
|
merge small unit tests to make running the tests quicker. expand the test framework a bit. add ax_boost_random.m4 script to link against boost.random correctly from makefile.
|
2015-05-30 04:31:23 +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
|
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
|
607e708bc4
|
fix warnings
|
2015-05-19 03:13:49 +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
|
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
|
494b425ea1
|
fix warnings and a peer logging bug
|
2015-05-10 18:38:10 +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
|
6557910c7f
|
remove the DHT's last dependency on session_impl
|
2015-05-09 18:06:02 +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
|
fce3f77744
|
override marking of virtual functions
|
2015-05-05 05:37:01 +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
|
2fff222235
|
silence some warnings on msvc
|
2015-04-27 02:21:12 +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
|
f7e4f83469
|
separate out session_stats into its own header. silences warning and cleans up
|
2015-04-25 02:12:02 +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
|
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
|
87c46a144d
|
fix more warnings and some build issues
|
2015-04-22 04:24:45 +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
|
21751347bc
|
more warnings fixes and cleanup
|
2015-04-19 06:28:21 +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
|
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
|
bb48b6e83c
|
eliminate one more session dependency in peer_connection
|
2015-04-10 01:50:42 +00:00 |
Arvid Norberg
|
20aa53953c
|
fix etensions being passed all alerts
|
2015-04-07 00:50:21 +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
|
013ed36f09
|
landed alert_queue feature branch into trunk
|
2015-04-03 20:15:48 +00:00 |
Arvid Norberg
|
837e709628
|
deprecate RSS API
|
2015-03-28 17:31:27 +00:00 |
Arvid Norberg
|
ccc7e45406
|
landed mutable torrents branch in trunk
|
2015-03-21 00:12:40 +00:00 |
Arvid Norberg
|
794de25212
|
moved escape_string.hpp into the aux_ directory. moved out the 3 public hex functions into its own public header, hex.hpp
|
2015-03-14 23:10:20 +00:00 |
Arvid Norberg
|
6c1df7eb55
|
landed the bdecode branch in master. lazy_bdecode/lazy_entry is now being replaced by bdecode/bdecode_node
|
2015-03-12 05:20:12 +00:00 |
Arvid Norberg
|
c1dc982f4f
|
deprecate the ptime type and related time types. just use boost::chrono / std::chrono
|
2015-03-12 04:34:54 +00:00 |
Arvid Norberg
|
9b91508c38
|
clean up session_interface and tracker_manager a bit. work on making tracker_manager more testable
|
2015-02-01 14:30:43 +00:00 |
Arvid Norberg
|
d9e69db0cb
|
actually make use of the max_failcount setting
|
2015-01-20 06:26:22 +00:00 |
Arvid Norberg
|
54eb499803
|
make post_torrent_updates more flexible by allowing to pass flags to it. The same flags as torrent_handle::status. Also make the default return accurante progress
|
2015-01-20 02:46:23 +00:00 |
Arvid Norberg
|
22a02f4a1f
|
make dht_tracker be held by shared_ptr instead of intrusive_ptr. remove redundant performance counter (total dht sent/received). report DHT IP overhead to the IP overhead counters
|
2015-01-17 22:06:30 +00:00 |
Arvid Norberg
|
58d93e5aa1
|
add new (non-deprecated) access to dht stats, asynchronously via an alert
|
2015-01-17 17:02:58 +00:00 |
Arvid Norberg
|
b9b657c3d4
|
post alerts instead of writing to a file, in local peer discovery, when logging is enabled
|
2015-01-16 23:01:14 +00:00 |
Arvid Norberg
|
f914943e58
|
fix some compile warnings
|
2015-01-16 20:51:39 +00:00 |