{"record":{"id":"536bcb43f154493c","repo":"eclipse-vertx/vert.x","slug":"reconnect-interval-must-be-1-536bcb","errorCode":null,"errorMessage":"reconnect interval must be >= 1","messagePattern":"reconnect interval must be >= 1","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/net/QuicClientConfig.java","lineNumber":199,"sourceCode":"    return this;\n  }\n\n  /**\n   * @return  the value of reconnect interval\n   */\n  public Duration getReconnectInterval() {\n    return reconnectInterval;\n  }\n\n  /**\n   * Set the reconnect interval\n   *\n   * @param interval  the reconnect interval\n   * @return a reference to this, so the API can be used fluently\n   */\n  public QuicClientConfig setReconnectInterval(Duration interval) {\n    if (interval.isNegative() || interval.isZero()) {\n      throw new IllegalArgumentException(\"reconnect interval must be >= 1\");\n    }\n    this.reconnectInterval = interval;\n    return this;\n  }\n}\n","sourceCodeStart":181,"sourceCodeEnd":205,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/net/QuicClientConfig.java#L181-L205","documentation":"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.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/net/QuicClientConfig.java:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a positive Duration such as Duration.ofSeconds(1)","Validate externally configured reconnect settings"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fb308bd8c3f12c79f4ae89bef67fadf6c80d036e","analyzedAt":"2026-09-06T11:37:12.241Z","contentChangedAt":"2026-09-06T11:37:12.241Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}