Version
Vert.x 4.x → Vert.x 5.0.7
Context
When migrating from Vert.x 4 to Vert.x 5, I encountered unexpected connection timeout behavior with NetClient.connect().
Code that worked in Vert.x 4.x
NetClientOptions options = new NetClientOptions()
.setIdleTimeout(0)
.setTcpKeepAlive(true)
.setTcpNoDelay(true);
NetClient netClient = vertx.createNetClient(options);
// This worked fine in Vert.x 4.x - connection stayed open indefinitely
netClient.connect(socketaddress).onComplete(ar -> {
// handle connection
});
Problem in Vert.x 5
After upgrading to Vert.x 5, the connection automatically disconnects after 60 seconds, even though setIdleTimeout(0) was configured.
Environment
- Vert.x Version: 5.0.7
- Java Version: 21
- OS: macOS
Steps to reproduce
No response
Do you have a reproducer?
No response