We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChannelPoolObjectFactory的wrap方法应该是有问题,这里节选了一部分代码如下:
public PooledObject wrap(Connection obj) { Connection connection = fetchConnection();
// 中间代码省略.... return new DefaultPooledObject<Connection>(connection); }
wrap输入参数obj应该是已经调用ChannelPoolObjectFactory.create方法,在create方法里面已经调用fetchConnection, 为什么wrap里面还要再次fetchConnection,导致两次创建Connection.
The text was updated successfully, but these errors were encountered:
的确,存在重复创建Connection对象问题,会在下一个版本修复
Sorry, something went wrong.
jhunters
No branches or pull requests
ChannelPoolObjectFactory的wrap方法应该是有问题,这里节选了一部分代码如下:
public PooledObject wrap(Connection obj) {
Connection connection = fetchConnection();
wrap输入参数obj应该是已经调用ChannelPoolObjectFactory.create方法,在create方法里面已经调用fetchConnection, 为什么wrap里面还要再次fetchConnection,导致两次创建Connection.
The text was updated successfully, but these errors were encountered: