mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 05:30:24 +03:00
Expose RPC reconnections and ping time (#20157)
- Keeps track of reconnection count. - Keeps track of connection ping roundtrip times. Sends timestamp in ping message. - Allow ping without payload.
This commit is contained in:
+11
-2
@@ -290,10 +290,19 @@ func (muxConnectError) Op() Op {
|
||||
}
|
||||
|
||||
type pongMsg struct {
|
||||
NotFound bool `msg:"nf"`
|
||||
Err *string `msg:"e,allownil"`
|
||||
NotFound bool `msg:"nf"`
|
||||
Err *string `msg:"e,allownil"`
|
||||
T time.Time `msg:"t"`
|
||||
}
|
||||
|
||||
func (pongMsg) Op() Op {
|
||||
return OpPong
|
||||
}
|
||||
|
||||
type pingMsg struct {
|
||||
T time.Time `msg:"t"`
|
||||
}
|
||||
|
||||
func (pingMsg) Op() Op {
|
||||
return OpPing
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user