-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The maxDelay parameter defaults to Infinity:
fluent-logger-forward-node/src/socket.ts
Line 323 in 937ad65
| maxDelay: +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
Labels
No labels