Commit Graph

8534 Commits

Author SHA1 Message Date
Arvid Norberg 523bc7576d Merge pull request #306 from aldenml/fix-log-alerts
Fix num_alert_types
2015-12-04 01:39:28 -05:00
Alden Torres 409cfaccc1 Fix num_alert_types. 2015-12-03 22:04:32 -05:00
Arvid Norberg da25832459 Merge pull request #308 from arvidn/msvc-build-fix
fix msvc build
2015-12-03 21:09:33 -05:00
Arvid Norberg 595125d27d Merge pull request #305 from correa/fix-cmake
Fix build with cmake under windows.
2015-12-03 19:32:17 -05:00
arvidn 98c9ac0448 fix msvc build 2015-12-03 19:28:57 -05:00
arvidn 69f4e94995 null_observer is used in a test now 2015-12-03 07:51:53 -05:00
Thiago A. Correa e9830cb7dd Fix build with cmake under windows.
Fix build with MSVC, let cmake manage boost selection settings.
2015-12-03 09:38:34 -02:00
arvidn 8732863a9a another fix to receiving malformed DHT error message 2015-12-03 01:08:27 -05:00
Arvid Norberg 8f0e61ed46 Merge pull request #304 from arvidn/rlimit-cleanup
clean up use of getrlimit()
2015-12-02 07:55:11 -05:00
arvidn 2acb3dcb24 clean up use of getrlimit() by wrapping it and move it to platform_util.cpp. Also take the opportunity to make it simulator friendly (consistent in simulation) 2015-12-02 00:45:34 -05:00
Arvid Norberg f7b84bf4da Merge pull request #303 from arvidn/dht-malformed-errors
correctly check incoming DHT error messages
2015-12-01 07:34:50 -05:00
arvidn 550d75dab9 fix warning 2015-11-30 22:59:34 -05:00
arvidn eb8add0e57 fix missing include 2015-11-30 22:26:10 -05:00
arvidn 12dde0f415 actually add a test to the unit test 2015-11-30 19:07:35 -05:00
arvidn 7540a6e5cc correctly check incoming DHT error messages 2015-11-30 18:02:00 -05:00
Arvid Norberg d0da753fb8 Merge pull request #302 from arvidn/fix-save-resume
fix save_resume_data in client_test
2015-11-30 17:17:57 -05:00
arvidn 60df41cd85 fix save_resume_data in client_test and make torrent a bit more instrumentable. This could be greatly simplified if resume data would not have file_sizes and timestamps 2015-11-29 20:31:57 -05:00
Arvid Norberg 2a1582c05b Merge pull request #301 from arvidn/final-alerts
make alert types declared final
2015-11-29 13:40:17 -05:00
arvidn 87b64f083a fix python build 2015-11-29 11:12:58 -05:00
arvidn 332799bff2 make alert types declared final and disable the log alert declarations when logging is disabled 2015-11-29 10:16:02 -05:00
Arvid Norberg 0ce46f0fd1 Merge pull request #300 from arvidn/picker-log
fix bug disabling rarest first piece picking
2015-11-29 10:15:17 -05:00
arvidn e9c0fc8eb5 fix bug that disabled rarest-first piece picking. introduced when removing speed-affinity in the piece picker 2015-11-29 08:26:00 -05:00
arvidn fd3b53604c add new piece picker logging alert category 2015-11-29 08:25:55 -05:00
Arvid Norberg 578349e1d2 Merge pull request #299 from arvidn/fix-torrent-invariants
torrent invariant failure
2015-11-28 16:47:56 -05:00
arvidn 2c3d7ee0ef fix a bug where the torrent's invariant was not always maintained as well as a shutdown issue (now covered by test as well) 2015-11-28 14:14:49 -05:00
Arvid Norberg 359fc5648b Merge pull request #296 from arvidn/udp-read-handler
more efficient handler allocation for udp and second_tick
2015-11-28 01:06:10 -05:00
Arvid Norberg 82b5ed0039 Merge pull request #298 from arvidn/test_transfer-sim
base for transitioning test_transfer to a proper sim
2015-11-28 01:01:26 -05:00
arvidn 7b84c8122e extend test_transfer to include IPv6-only networks 2015-11-28 01:00:06 -05:00
arvidn a8e31fd8ca add first coverage of test_transfer as a proper sim 2015-11-28 00:59:39 -05:00
arvidn 98c3b75b55 use more efficient (in-place) handler allocation for udp async_read and session second_tick 2015-11-28 00:57:44 -05:00
arvidn 51df32a25b fix logging issue 2015-11-27 14:04:46 -05:00
Arvid Norberg ce329eff6b Merge pull request #295 from arvidn/tracker-error-fix
extend tracker sim test and fix some bugs in tracker error reporting
2015-11-25 19:02:08 -05:00
arvidn 847cd340ee extend tracker sim test and fix some bugs in tracker error reporting 2015-11-24 23:38:49 -05:00
Arvid Norberg 08717cb2b9 Merge pull request #293 from arvidn/error_code-cleanup
clean up use of error categories
2015-11-24 19:29:41 -05:00
arvidn 06b648203f clean up use of error categories 2015-11-24 00:50:51 -05:00
Arvid Norberg bd4f1973a2 Merge pull request #239 from arvidn/http_connection-sim
start of an http_connection test under the simulator
2015-11-24 00:41:10 -05:00
arvidn eed17f0bc1 remove the cases from non-sim test that are covered by the new http_connection sim test 2015-11-24 00:39:02 -05:00
arvidn 47cd496617 extend http_connection sim test to proxy hostnames 2015-11-24 00:39:02 -05:00
arvidn 710e510c4b fix format string to be msvc compatible and work-around issue with boost.asio beeing header-only and instantiating multiple error_category objects when linking shared 2015-11-24 00:39:02 -05:00
arvidn e3dad98fbe fix an old use of posix_category. make http_connection translate IPs into proper endpoints when connecting over socks (instead of passing the IP on as a hostname string). add test coverage 2015-11-24 00:39:02 -05:00
arvidn 92236a9923 clean up error_code use, and use error_condition to test for errors in test_http_connection 2015-11-24 00:39:01 -05:00
arvidn fa3215f8c7 don't capture buffer by value in lambda expression 2015-11-24 00:39:01 -05:00
arvidn 8db3fef969 update libsimulator 2015-11-24 00:39:01 -05:00
arvidn 174e0aeb46 fix semantics of socks5_stream and http_connection to make them not close themselves. Add socks5 and socks4 proxy coverage in test_http_connection 2015-11-24 00:39:01 -05:00
arvidn 91868f2086 add test for gzipped http responses 2015-11-24 00:39:01 -05:00
arvidn 9e971895dc test chunked encoding in new http_connection test 2015-11-24 00:39:01 -05:00
arvidn c6e46ae305 improve http_connection simulation test and extend it 2015-11-24 00:39:01 -05:00
arvidn f4a2b4d949 start of an http_connection test under the simulator 2015-11-24 00:39:01 -05:00
Arvid Norberg 173801d1f4 Merge pull request #292 from thomas-yuan/observer_size
Fix observer_size.
2015-11-23 18:59:53 -05:00
Thomas Yuan 603ef84c65 Fix observer_size. 2015-11-23 11:06:20 -05:00