eclipse-vertx/vert.x · error · IllegalArgumentException
reconnect interval must be >= 1
Error message
reconnect interval must be >= 1
What it means
Configuration validation in QuicClientConfig.setReconnectInterval: the delay between reconnection attempts must be strictly positive (both zero and negative Durations are rejected). A non-positive interval would busy-loop reconnections.
Source
Thrown at vertx-core/src/main/java/io/vertx/core/net/QuicClientConfig.java:199
return this;
}
/**
* @return the value of reconnect interval
*/
public Duration getReconnectInterval() {
return reconnectInterval;
}
/**
* Set the reconnect interval
*
* @param interval the reconnect interval
* @return a reference to this, so the API can be used fluently
*/
public QuicClientConfig setReconnectInterval(Duration interval) {
if (interval.isNegative() || interval.isZero()) {
throw new IllegalArgumentException("reconnect interval must be >= 1");
}
this.reconnectInterval = interval;
return this;
}
}
View on GitHub (pinned to fb308bd8c3)
Solutions
- Pass a positive Duration such as Duration.ofSeconds(1)
- Validate externally configured reconnect settings
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at vertx-core/src/main/java/io/vertx/core/net/QuicClientConfig.java:199 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of eclipse-vertx/vert.x@fb308bd8c3 (2026-09-06).
Data as JSON: /api/errors/536bcb43f154493c.
Report an issue: GitHub.