Commit Graph

8343 Commits

Author SHA1 Message Date
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
Arvid Norberg 8a89bbbb9e Merge pull request #289 from thomas-yuan/test
Merge send_dht_request and send_simple_dht_request.
2015-11-23 01:10:56 -05:00
Arvid Norberg 5cedf781a1 Merge pull request #288 from ssiloti/master
fix segfault in put_data
2015-11-22 23:20:34 -05:00
Thomas Yuan c005c937fd Merge almost same functions. 2015-11-22 22:02:37 -05:00
Steven Siloti 9c7edf803e add override and a TODO 2015-11-22 18:58:32 -08:00
Steven Siloti 9f7aa7f3a6 fix segfault in put_data
If less than three nodes are found to put an item to then traversal_algorithm::start
will add router nodes. This leads to a crash in put_data::invoke when it tries to
read a token from uninitialized memory in a null_observer.
2015-11-22 16:05:24 -08:00
Arvid Norberg adb70a8dc3 Merge pull request #287 from ssiloti/master
Small fixes
2015-11-22 13:58:10 -05:00
Steven Siloti 1f13343a70 const correctness 2015-11-22 10:02:26 -08:00
Steven Siloti 8a984effa7 allow done() with a non-zero invoke count 2015-11-22 10:02:26 -08:00
Steven Siloti 6c5bed63d3 whitespace cleanup 2015-11-22 10:02:26 -08:00
Arvid Norberg 4cd2a35d9d Merge pull request #286 from precla/master
Fixed small typos.
2015-11-22 11:35:55 -05:00
precla d214e0cf99 Fixed small typos. 2015-11-22 16:39:44 +01:00
Arvid Norberg 3e4409fa02 Merge pull request #281 from arvidn/ip-filter-test
add integration test for IP filter
2015-11-21 12:30:35 -05:00
Arvid Norberg 63082f02aa Merge pull request #283 from cas--/Issue/master/277/Silence-Wstrict-prototypes
[Bindings/Python] Silence '-Wstrict-prototypes' warnings
2015-11-21 11:16:17 -05:00
arvidn ed3dbaa78e also make sure trackers are subject to the IP filter 2015-11-21 09:30:02 -05:00
Calum Lind 9c3193c9c1 [Bindings/Python] Silence '-Wstrict-prototypes' warnings
* Fixes #277
   * This commit removes -Wstrict-prototypes configure option from 'OPT' envvar
     that is added by distutils from reading /usr/lib/pythonX.Y/config/Makefile.
2015-11-21 14:04:27 +00:00
arvidn 73381d223b add integration test for IP filter 2015-11-21 02:31:53 -05:00
Arvid Norberg ddddce6e2a Merge pull request #280 from arvidn/stop-start-test
stop-start test
2015-11-21 02:31:11 -05:00
Arvid Norberg 42b129b9d5 Merge pull request #178 from thomas-yuan/put
Make dht_put_alert more accurate.
2015-11-21 02:30:45 -05:00
arvidn 4a30653084 improve coverage of stop-start-test 2015-11-20 22:27:33 -05:00
arvidn c0d6b20634 extend swarm simulation test to include stopping and starting and graceful pause 2015-11-20 22:27:12 -05:00
Arvid Norberg 2eabf99307 Merge pull request #276 from arvidn/msvc-warnings
attempt to fix some msvc warnings
2015-11-20 08:04:38 -05:00
arvidn 4c790043a1 fix invariant check failure in torrent::pause 2015-11-20 01:38:21 -05:00
arvidn f03cefceb6 fix documentation bugs 2015-11-20 01:00:39 -05:00
Arvid Norberg daee339ac2 Merge pull request #279 from aldenml/missing-version-file-cmake
Missing file version.cpp in CMakeLists.txt
2015-11-20 00:36:13 -05:00
Thomas Yuan ab70ad3e05 fix comments and unit test 2015-11-20 00:06:08 -05:00
Thomas Yuan 194ad410dc Make dht_put_alert more accurate. 2015-11-20 00:06:08 -05:00
arvidn 4aaa8ca4a9 silence msvc performance warnings. introduce more override and finals 2015-11-19 23:37:45 -05:00
arvidn c9c5496f1c lower alignment requirement of socket_type to silence msvc warning (it was probably not warranted in the first place anyway) 2015-11-19 22:50:40 -05:00
Alden Torres a03b18f803 Missing file version.cpp in CMakeLists.txt 2015-11-19 21:56:51 -05:00
arvidn fba0762353 fix some msvc warnings 2015-11-19 19:01:54 -05:00
Arvid Norberg 6fc0b3609f Merge pull request #270 from arvidn/storage-refactor
factor out readwritev to a free function, to allow unit testing of it
2015-11-19 19:01:34 -05:00
arvidn 07574117ad add test for readwritev and experiment with SEH handler in test 2015-11-19 17:58:56 -05:00
arvidn 964031c070 factor out readwritev to a free function, to allow unit testing of it 2015-11-19 17:58:55 -05:00
Arvid Norberg 12b5404970 Merge pull request #278 from mhsjlw/patch-1
Remove un-needed line break that causes errors
2015-11-19 08:13:22 -05:00
mhsjlw 3c9c4d0af1 Remove un-needed line break that causes errors 2015-11-19 07:32:53 -05:00
arvidn cec6748e0c remove the concept of slots, and just talk about pieces (since we don't do compact allocation anymore). Remove the section about compact allocation 2015-11-19 01:38:04 -05:00
Arvid Norberg 9bed3d1dd5 Merge pull request #272 from ssiloti/master
fix assert after a DHT get/put request
2015-11-17 20:37:13 -05:00
Steven Siloti 86116caf4c fix assert after a DHT get/put request
If an observer is abandoned due to there being more than 100 results in a
traversal then the traversal may complete while the observer is still
outstanding. When the observer times out or is aborted it calls
traversal_algorithm::failed() which asserts because m_invoke_count has been
cleared to zero by traversal_algorithm::done().

To fix this add a check when abandoning observers to see if they have an
outstanding query. If they do then flag them as done to prevent them from
calling back into the traversal and decrement the invoke count.

Fixes #271
2015-11-16 21:05:32 -08:00
Arvid Norberg 0dbe94616a Merge pull request #269 from ssiloti/master
fix assert in dht::observer
2015-11-15 18:13:01 -05:00
Steven Siloti ba1ccdec66 fix assert in dht::observer
This is was introduced by c2277b3ea5
"fix traversal_algorithm::done() being invoked more than once".
2015-11-14 18:30:42 -08:00
Arvid Norberg 64aba31e30 Merge pull request #263 from thomas-yuan/dead_loop_on_ios
Fix iOS dead loop issue.
2015-11-14 12:55:53 -05:00