()
| 493 | } |
| 494 | |
| 495 | func (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). |
no outgoing calls
no test coverage detected