Zebra/zebra-test
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
..
scripts Security: Stop RocksDB or tokio calling unexpected code when zebrad exits (#3392) 2022-01-26 13:16:44 +00:00
src fix(security): Randomly drop connections when inbound service is overloaded (#6790) 2023-05-31 19:04:15 +00:00
tests change(deps): Update dependencies that only appear in the lock file (#6217) 2023-03-26 23:53:17 +00:00
Cargo.toml build(deps): bump once_cell from 1.17.1 to 1.17.2 (#6776) 2023-05-30 02:02:27 +00:00