mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
grid: Simpler reconnect logic (#18889)
Do not rely on `connChange` to do reconnects. Instead, you can block while the connection is running and reconnect when handleMessages returns. Add fully async monitoring instead of monitoring on the main goroutine and keep this to avoid full network lockup.
This commit is contained in:
@@ -533,7 +533,9 @@ func (m *muxClient) closeLocked() {
|
||||
if m.closed {
|
||||
return
|
||||
}
|
||||
close(m.respWait)
|
||||
m.respWait = nil
|
||||
if m.respWait != nil {
|
||||
close(m.respWait)
|
||||
m.respWait = nil
|
||||
}
|
||||
m.closed = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user