-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ListenerConn: Fix deadlock when connection is lost while a query is q…
…ueued Because the two goroutines acquire the two exclusive locks in different orders, they would deadlock with each other for no reason. Fix by swapping the order of acquisition in acquireSenderLock. If l.err is set nobody should be holding senderLock for a long time anyway, so undesired practical effects of this change should be very minimal.
- Loading branch information
Showing
2 changed files
with
43 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