mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
fix: incomingBytes() to update via handleMessages() (#18891)
previous change #18880 was incomplete
This commit is contained in:
parent
944f3c1477
commit
7743d952dc
@ -956,6 +956,10 @@ func (c *Connection) handleMessages(ctx context.Context, conn net.Conn) {
|
||||
logger.LogIfNot(ctx, fmt.Errorf("ws read: %w", err), net.ErrClosed, io.EOF)
|
||||
return
|
||||
}
|
||||
if c.incomingBytes != nil {
|
||||
c.incomingBytes(int64(len(msg)))
|
||||
}
|
||||
|
||||
// Parse the received message
|
||||
var m message
|
||||
subID, remain, err := m.parse(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user