pushd icon indicating copy to clipboard operation
pushd copied to clipboard

EventSource broken by Node 0.12

Open rapropos opened this issue 9 years ago • 2 comments

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.

rapropos avatar Mar 07 '15 00:03 rapropos

Could you send a pull request?

rs avatar Mar 07 '15 01:03 rs

OK, I tried making a pull request. Let me know if I did something wrong, not familiar with the process.

rapropos avatar Mar 07 '15 23:03 rapropos