Chris2018998 / beecp

A small JDBC Connection pool
Apache License 2.0
88 stars 18 forks source link

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

Closed crazyliuzc closed 4 years ago

crazyliuzc commented 4 years ago

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

Chris2018998 commented 4 years ago

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

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

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

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