Zebra/zebra-network/src/peer
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
..
client fix(rust): Make Zebra build with the latest nightly Rust (#5738) 2022-11-30 07:03:24 +00:00
connection fix(net): Reduce inbound service overloads and add a timeout (#6950) 2023-06-15 00:43:41 +00:00
handshake fix(net): Limit the number of leftover nonces in the self-connection nonce set (#6534) 2023-04-18 08:13:19 +00:00
minimum_peer_version 4. Avoid repeated requests to peers after partial responses or errors (#3505) 2022-02-15 01:44:33 +00:00
client.rs fix(net): Try harder to drop connections when they shut down, Credit: Ziggurat Team (#6832) 2023-06-07 03:41:49 +00:00
connection.rs fix(net): Add outer timeouts for critical network operations to avoid hangs (#7869) 2023-11-02 15:00:18 +00:00
connector.rs fix(panic): Stop panicking when handling inbound connection handshakes (#6984) 2023-06-19 03:39:59 +00:00
error.rs fix(net): Reduce inbound service overloads and add a timeout (#6950) 2023-06-15 00:43:41 +00:00
handshake.rs cleanup(clippy): Fix new nightly clippy lints from July and August 2023 (#7384) 2023-08-25 22:58:30 +00:00
load_tracked_client.rs feat(net): return peer metadata from `connect_isolated` functions (#4870) 2022-09-14 15:00:25 +00:00
minimum_peer_version.rs feat(net): return peer metadata from `connect_isolated` functions (#4870) 2022-09-14 15:00:25 +00:00
priority.rs fix(log): Stop logging peer IP addresses, to protect user privacy (#6662) 2023-05-14 15:06:07 +00:00