Skip to content

TimeoutOverflowWarning after many retries #44

@mhassan1

Description

@mhassan1

The maxDelay parameter defaults to Infinity:

maxDelay: +Infinity,

In the case where the computed delay is larger than the maximum 32-bit signed integer (2 ** 31 - 1), a TimeoutOverflowWarning is emitted by setTimeout, the value 1 is assumed, and we end up waiting only 1 millisecond before retrying, which causes frequent retries.

I have worked around this issue by passing:

socket: {
  reconnect: {
    maxDelay: 2 ** 31 - 1
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions