joyent/node — pull request #5105 by indutny (2013-03-21 17:41:01+00:00)
Title: timers: handle signed int32 overflow in enroll()

Before this patch calling `socket.setTimeout(0xffffffff)` will result in
signed int32 overflow in C++ which resulted in assertion error:

Assertion failed: (timeout >= -1), function uv__io_poll, file
../deps/uv/src/unix/kqueue.c, line 121.

see #5101

/cc @bnoordhuis