zebra/zebrad/src/components
teor 628b3e39af
fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869)
* Refactor out try_to_sync_once()

* Add outer timeouts for obtaining and extending tips

* Refactor out request_genesis_once()

* Wrap genesis download once in a timeout

* Increase the genesis timeout to avoid denial of service from old nodes

* Add an outer timeout to mempool crawls

* Add an outer timeout to mempool download/verify

* Remove threaded mutex blocking from the inbound service

* Explain why inbound readiness never hangs

* Fix whitespace that cargo fmt doesn't

* Avoid hangs by always resetting the past lookahead limit flag

* Document block-specific and syncer-wide errors

* Update zebrad/src/components/sync.rs

Co-authored-by: Marek <mail@marek.onl>

* Use correct condition for log messages

Co-authored-by: Marek <mail@marek.onl>

* Keep lookahead reset metric

---------

Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: Marek <mail@marek.onl>
2023-11-02 15:00:18 +00:00
..
inbound change(consensus): Remove Sprout and Sapling parameter download task and debug_skip_preload config (#7844) 2023-10-27 06:12:57 +00:00
mempool fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869) 2023-11-02 15:00:18 +00:00
sync fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869) 2023-11-02 15:00:18 +00:00
tracing change(ui): Enable the progress bar feature by default, but only show progress bars when the config is enabled (#7615) 2023-10-12 00:25:37 +00:00
inbound.rs fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869) 2023-11-02 15:00:18 +00:00
mempool.rs fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869) 2023-11-02 15:00:18 +00:00
metrics.rs fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
sync.rs fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869) 2023-11-02 15:00:18 +00:00
tokio.rs fix(zebrad): accept default subcommand arguments and print consistent usage information for top-level 'help' subcommand (#6801) 2023-06-07 06:03:42 +00:00
tracing.rs change(ui): Enable the progress bar feature by default, but only show progress bars when the config is enabled (#7615) 2023-10-12 00:25:37 +00:00