MarkCloseOnPut marks the connection for removal when it is returned to the pool.
(reason string)
| 444 | |
| 445 | // MarkCloseOnPut marks the connection for removal when it is returned to the pool. |
| 446 | func (cn *Conn) MarkCloseOnPut(reason string) { |
| 447 | cn.closeOnPutReason.Store(reason) |
| 448 | } |
| 449 | |
| 450 | // CloseOnPutReason returns a non-empty reason when the connection should be |
| 451 | // removed instead of pooled on Put. |