diff options
| author | James Hartig <fastest963@gmail.com> | 2020-09-21 22:41:38 -0400 |
|---|---|---|
| committer | James Hartig <fastest963@gmail.com> | 2020-09-21 22:41:38 -0400 |
| commit | 91e4eca1e98cb5195346d90a2cc1fb9c92557213 (patch) | |
| tree | b62a91ceacc83df49f2562eedfa024cc0a7ed4f8 /weed/command/benchmark.go | |
| parent | 9cdbfc1a4987bdb46f16ae37624ed69ef66778a9 (diff) | |
| download | seaweedfs-91e4eca1e98cb5195346d90a2cc1fb9c92557213.tar.xz seaweedfs-91e4eca1e98cb5195346d90a2cc1fb9c92557213.zip | |
Fix deadlock with KeepConnected and SendHeartbeat
There's the potential where we're writing to a clientConn and it goes away
and we're stuck keeping a read lock on clientChansLock. This causes
KeepConnected to not be able to remove the client since it requires a write
lock on clientChansLock. This ends up backing up SendHeartbeat because it
can't get a read lock.
Diffstat (limited to 'weed/command/benchmark.go')
0 files changed, 0 insertions, 0 deletions
