-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(share/p2p/shrexeds): hotfix shrex contexts for bsr (#2192)
Currently we are timing out in shrex for the full context length (2.5 minutes) because we fail to 1. Open streams 2. Read status from streams This PR limits stream open to 5s, and reading the status from the stream to 5s (via read Deadline config param). We also put peers on timeout that return a context deadline. It is a bad fix and the correct way to do this can be discussed once we can look deeper into the problems - but for now, we need to fix the test network before it ends next week. This fix does not appear to be enough to fully fix syncing stall/syncing speed (the only solution that has done that so far is a new `ResultDropPeer` in peerman), but it is simple and helps a bit. Related: #2191
- Loading branch information
1 parent
955f184
commit e06aa7f
Showing
2 changed files
with
15 additions
and
3 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