-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapping request client calls with a read/write mutex (#3701)
Refs #3699 Depends on #3704 It happens that the keep-core client panics when interacting with the `go-electrum` library. We noticed a "concurrent write to websocket connection" error was thrown when calling `GetLatestBlockHeight()` function. The stack trace leads to gorilla/websocket/WriteMessage which is called from the `go-electrum` library. The latest block height call was already wrapped with a read mutex, but we should also wrap it with the write mutex to prevent such concurrent errors.
- Loading branch information
Showing
2 changed files
with
47 additions
and
4 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