forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quic tpu: lower stream timeout from 10s to 1s
Don't wait 10s for one piece of a transaction to come before timing out. Lower the timeout to 1s, after which we assume a stream is dead. 1s is enough round trips to account for non catastrophic packet loss. If packet loss is causing >1s stream latency, the connection is hosed and the best thing we can do is save server resources for peers with better connectivity. This reduces the number of timeout futures we crate in the worst case by 10.
- Loading branch information
1 parent
0b71c7c
commit 92e77a6
Showing
2 changed files
with
16 additions
and
26 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