Noobed the deadlock
This commit is contained in:
		| @@ -63,6 +63,7 @@ func (p *pool) release(addr string, conn *poolConn, err error) { | |||||||
| 	p.Lock() | 	p.Lock() | ||||||
| 	conns := p.conns[addr] | 	conns := p.conns[addr] | ||||||
| 	if len(conns) >= maxIdleConn { | 	if len(conns) >= maxIdleConn { | ||||||
|  | 		p.Unlock() | ||||||
| 		conn.Client.Close() | 		conn.Client.Close() | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user