From 5ad858aac69a377ff8ba1b4984e334c3e8c1730f Mon Sep 17 00:00:00 2001 From: nange Date: Wed, 8 Nov 2017 16:22:04 +0800 Subject: [PATCH] update readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6882b7b..85f3bf7 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,10 @@ if err != nil { // 使用完连接之后,调用Close发放,当前连接会重新放回到pool中 conn.Close() +// 如果需要直接关闭底层连接(比如底层连接已经失效),则: +conn.(*PoolConn).MarkUnusable() +conn.Close() + // 释放当前连接池中所有连接 pool.Close()