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.
1 parent a24b278 commit c9fab57Copy full SHA for c9fab57
src/QUICConnection.ts
@@ -1024,10 +1024,10 @@ class QUICConnection {
1024
// If it is `settled`, then cancelling is a noop
1025
// If it is `settling`, then cancelling only prevents it at the beginning of the handler
1026
this.connTimeoutTimer?.cancel();
1027
-
1028
- // FIXME: Investigate if this is needed because timer is settled synchronously after cancel
+ // The `this.connTimeoutTimer` is a lazy timer, so it's status may still
+ // be `null` or `settling`. So we have to delete it here to ensure that
1029
+ // the timer will be recreated.
1030
delete this.connTimeoutTimer;
1031
if (this.conn.isClosed()) {
1032
this.resolveClosedP();
1033
if (this.conn.isTimedOut()) {
0 commit comments