23 ms·
The bug occurs if your process reaches ~25 days, period. Regardless of the interval that you set - it could be 1ms and still fail. It has been 'fixed' and is no
by zamalek 8y ago
The bug occurs if your process reaches ~25 days, period. Regardless of the interval that you set - it could be 1ms and still fail. It has been 'fixed' and is now ~49 days, but setTimeout does not throw and so you have to rely on your process crashing due to some other condition.
If you have setTimeout anywhere in your code (including packages), you will need to force it to crash/exit once a month.
The implementation of setTimeout in Node is not sound.