Version
5.0.7
Context
In io.vertx.pgclient.spi.PgDriver, the createConnectionFactory method implementation ignores the transportOptions argument. This means any NetClientOptions passed during pool creation or factory initialization are not applied to the underlying PgConnectionFactory.
Code Snippet
https://github.com/eclipse-vertx/vertx-sql-client/blob/master/vertx-pg-client/src/main/java/io/vertx/pgclient/spi/PgDriver.java
@Override
public ConnectionFactory<PgConnectOptions> createConnectionFactory(Vertx vertx, NetClientOptions transportOptions) {
// transportOptions is ignored here!
return new PgConnectionFactory((VertxInternal) vertx);
}
Steps to reproduce
- Create a
PgPool with specific NetClientOptions (e.g., socks5 proxy).
- The
PgDriver will instantiate PgConnectionFactory using only the Vertx instance.
- The custom
NetClientOptions are discarded.
Do you have a reproducer?
No response
Version
5.0.7
Context
In
io.vertx.pgclient.spi.PgDriver, thecreateConnectionFactorymethod implementation ignores thetransportOptionsargument. This means anyNetClientOptionspassed during pool creation or factory initialization are not applied to the underlyingPgConnectionFactory.Code Snippet
https://github.com/eclipse-vertx/vertx-sql-client/blob/master/vertx-pg-client/src/main/java/io/vertx/pgclient/spi/PgDriver.java
Steps to reproduce
PgPoolwith specificNetClientOptions(e.g., socks5 proxy).PgDriverwill instantiatePgConnectionFactoryusing only theVertxinstance.NetClientOptionsare discarded.Do you have a reproducer?
No response