Skip to content

Commit 61205be

Browse files
authored
feat: raise backlog warning log threshold from 1/2 to 2/3 (#113)
1 parent 2bb4fbb commit 61205be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ func (c *wsConn) readFrame(ctx context.Context, r io.Reader) {
673673
}
674674

675675
c.frameExecQueue <- buf
676-
if len(c.frameExecQueue) > cap(c.frameExecQueue)/2 {
676+
if len(c.frameExecQueue) > 2*cap(c.frameExecQueue)/3 { // warn at 2/3 capacity
677677
log.Warnw("frame executor queue is backlogged", "queued", len(c.frameExecQueue), "cap", cap(c.frameExecQueue))
678678
}
679679

0 commit comments

Comments
 (0)