Skip to content

Commit

Permalink
fix: retry for EAI_AGAIN I/O error (#10383)
Browse files Browse the repository at this point in the history
  • Loading branch information
didinele authored Jul 11, 2024
1 parent 9461045 commit be04acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ws/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ export function getInitialSendRateLimitState(): SendRateLimitState {
};
}

export const KnownNetworkErrorCodes = new Set(['ECONNRESET', 'ECONNREFUSED', 'ETIMEDOUT']);
export const KnownNetworkErrorCodes = new Set(['ECONNRESET', 'ECONNREFUSED', 'ETIMEDOUT', 'EAI_AGAIN']);

0 comments on commit be04acd

Please sign in to comment.