pushd
pushd copied to clipboard
EventSource broken by Node 0.12
Node.js commit joyent/node@f34757398fcc393685b4dfbcbdc692fb38332d6c causes eventsource to crash upon subscription because it is attempting to use Infinity as a timeout value:
RangeError: msecs must be a non-negative finite number
at Object.exports.enroll (timers.js:160:11)
at Socket.setTimeout (net.js:329:12)
at pushd/lib/eventsource.coffee:34:20
I don't know what the proper solution is, but I tried changing Infinity to 0x7FFFFFFF and things seem to work.
Could you send a pull request?
OK, I tried making a pull request. Let me know if I did something wrong, not familiar with the process.