We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
maxIdleTimeout
0
1 parent c6051da commit a027417Copy full SHA for a027417
src/QUICConnection.ts
@@ -353,6 +353,16 @@ class QUICConnection extends EventTarget {
353
}) {
354
super();
355
this.logger = logger ?? new Logger(`${this.constructor.name} ${scid}`);
356
+ // Checking constraints
357
+ if (
358
+ config.keepAliveIntervalTime != null &&
359
+ config.maxIdleTimeout !== 0 &&
360
+ config.keepAliveIntervalTime >= config.maxIdleTimeout
361
+ ) {
362
+ throw new errors.ErrorQUICConnectionInvalidConfig(
363
+ 'keepAliveIntervalTime must be shorter than maxIdleTimeout',
364
+ );
365
+ }
366
367
const quicheConfig = buildQuicheConfig(config);
368
let conn: Connection;
0 commit comments