问答 / 0 / 2 / 创建于 2年前
正常应该是最大连接数 > 空闲连接数
作者这里把空闲连接数默认为 100,最大连接数默认为了 25,感觉像是写反了
是的,我也去看官方文档了 按道理空闲时间打开的句柄更少才对
确实写反了。根据文档:If MaxOpenConns is greater than 0 but less than the new MaxIdleConns, then the new MaxIdleConns will be reduced to match the MaxOpenConns limit.
我要举报该,理由是:
推荐文章: