MCPcopy
hub / github.com/redis/go-redis / clearRelaxedTimeout

Method clearRelaxedTimeout

internal/pool/conn.go:495–505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493}
494
495func (cn *Conn) clearRelaxedTimeout() {
496 cn.relaxedReadTimeoutNs.Store(0)
497 cn.relaxedWriteTimeoutNs.Store(0)
498 cn.relaxedDeadlineNs.Store(0)
499 cn.relaxedCounter.Store(0)
500
501 // Note: Metrics for timeout unrelaxing are not recorded here because we don't have
502 // context about which notification type or pool triggered the relaxation.
503 // In practice, relaxed timeouts expire automatically via deadline, so explicit
504 // unrelaxing metrics are less critical than the initial relaxation metrics.
505}
506
507// HasRelaxedTimeout returns true if relaxed timeouts are currently active on this connection.
508// This checks both the timeout values and the deadline (if set).

Callers 3

ClearRelaxedTimeoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected