-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bandwidth_limit in bytes added to config update v17 upgrade path update v17 config tests * bandwidth limiter class test to validate limiter * hook to nano::transport::channel update nano::transport::channel::send to send if message shouldnt be dropped otherwise increment drop stat and dont send * initialize array with brace-enclosed initializer * correctly 1.5Mb * update tests to account for correct math and full confirm_ack confirm_req blocks use 1.5 * 1024 * 1024 for bytes to Mb limit * update config test * formatting * update default value in error text * add logging message and convenience detail_raw_to_string for dropped data type and size include publish as it is vote traffic * should always log dropped messages, this could be improved with a logging config option * stuff under logging;packet logging * typo and log out limit on node start * remove duplicate convert to key before passing to now public detail_to_string * Readability and simplification * use static constexpr in function * unsigned int < 0 always false * add republish_vote to could_drop * trend rate over minimum of 1 sec simplify limiter add bool not_dropable default false to nano::transport::channel::send allowing calls to channel::send to drop * update test to validate ramp down to 0 rate again * merge master * remove unused variables in tests const limit as not changed after construction reverse send logic, default true adjust to exclude messages such as keepalives and bootstrap traffic * clean up tests and add multiple limiters simplify bandwidth limiter * formatting * fix merge issues flip logic on is_dropable * allow dropping of keep alives * whitespace * use send instead of send_buffer a couple more places
- Loading branch information
Russel Waters
committed
Jun 11, 2019
1 parent
3b75102
commit a742ab8
Showing
12 changed files
with
176 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.