zebra/zebra-test/src
teor 6eaf83b4bf
fix(security): Randomly drop connections when inbound service is overloaded (#6790)
* fix(security): Randomly drop connections when inbound service is overloaded

* Uses progressively higher drop probabilities

* Replaces Error::Overloaded with Fatal when internal services shutdown

* Applies suggestions from code review.

* Quickens initial drop probability decay and updates comment

* Applies suggestions from code review.

* Fixes drop connection probablity calc

* Update connection state metrics for different overload/error outcomes

* Split overload handler into separate methods

* Add unit test for drop probability function properties

* Add respond_error methods to zebra-test to help with type resolution

* Initial test that Overloaded errors cause some continues and some closes

* Tune the number of test runs and test timing

* Fix doctests and replace some confusing example requests

---------

Co-authored-by: arya2 <aryasolhi@gmail.com>
2023-05-31 19:04:15 +00:00
..
command Fix typos (#4164) 2022-04-22 01:10:33 +00:00
vectors build(deps): bump insta from 1.15.0 to 1.17.1 (#4884) 2022-08-04 15:44:44 +00:00
command.rs change(ci): Generate mainnet checkpoints in CI (#6550) 2023-04-27 04:39:43 +00:00
lib.rs fix(test): Reduce verbose test logs (#5825) 2022-12-08 23:56:01 +00:00
mock_service.rs fix(security): Randomly drop connections when inbound service is overloaded (#6790) 2023-05-31 19:04:15 +00:00
net.rs change(tests): use OS-assigned unallocated ports for getting random known ports (#5607) 2022-11-10 23:23:12 +00:00
network_addr.rs fix(doc): Fix various doc warnings, part 2 (#4561) 2022-06-14 01:22:16 +00:00
prelude.rs fix(doc): Fix various doc warnings, part 2 (#4561) 2022-06-14 01:22:16 +00:00
service_extensions.rs Consolidate standard lints into a cargo config file (#3386) 2022-01-24 16:25:06 +00:00
transcript.rs Remove redundant track_callers which now cause errors on nightly (#5839) 2022-12-13 00:59:38 +00:00
vectors.rs fix(doc): Fix the syntax of links in comments (#4494) 2022-05-30 20:12:11 +00:00
zip0143.rs Always compute sighash with librustzcash (#2469) 2021-07-09 09:55:08 +10:00
zip0243.rs Fix bug in sighash for coinbase transactions (#2459) 2021-07-08 16:05:40 -03:00
zip0244.rs fix(doc): Fix the syntax of links in comments (#4494) 2022-05-30 20:12:11 +00:00