When the hostpool is empty dont block in fill
@@ -679,7 +679,8 @@ func (pool *hostConnPool) Pick(qry *Query) *Conn {
if empty {
// try to fill the empty pool
- pool.fill()
+ go pool.fill()
+ return nil
}
return pool.policy.Pick(qry)