Chris2018998 / beecp

A small JDBC Connection pool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问networkTimeout是做什么的?有个警告日志

crazyliuzc opened this issue · comments

[2020-08-05 18:55:41,444][WARN][cn.beecp.pool.FastConnectionPool.setDefaultOnRawConn(FastConnectionPool.java:324)]:
BeeCP(FastPool-1)driver not support 'networkTimeout'

networkTimeout 是一个网络超时控制时间,表达的意思是:从驱动端发起的请求,多少时间内能获得数据服务端的响应.

它的时间单位是毫秒,若值等于0,则表示永不超时.

那个警告原本意思是说驱动不支持networkTimeout .从实际代码检查来看,检查驱动的默认networkTimeout值时需要排除0,下一个版本将会修复.

临时放一个版本
(https://github.com/Chris2018998/BeeCP/blob/master/doc/release/BeeCP-2.5.1.jar)