Skip to content

Commit 98b3fc9

Browse files
committed
fix: adding ErrorQUICStreamLimit error to the isConnectionError list
[ci skip]
1 parent 8a28dba commit 98b3fc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nodes/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ function generateRandomNodeIdForBucket(
314314
* This is generally used to check the connection has failed
315315
* before cleaning it up.
316316
*/
317-
// FIXME: need to include ErrorQUICConnectionIdleTimeout error in this list.
318-
function isConnectionError(e): boolean {
317+
function isConnectionError(e: unknown): boolean {
319318
return (
320319
e instanceof nodesErrors.ErrorNodeConnectionDestroyed ||
321320
e instanceof nodesErrors.ErrorNodeManagerConnectionFailed ||
@@ -325,7 +324,8 @@ function isConnectionError(e): boolean {
325324
e instanceof quicErrors.ErrorQUICConnectionLocal ||
326325
e instanceof quicErrors.ErrorQUICConnectionNotRunning ||
327326
e instanceof quicErrors.ErrorQUICConnectionStopping ||
328-
e instanceof quicErrors.ErrorQUICConnectionIdleTimeout
327+
e instanceof quicErrors.ErrorQUICConnectionIdleTimeout ||
328+
e instanceof quicErrors.ErrorQUICStreamLimit
329329
);
330330
}
331331

0 commit comments

Comments
 (0)