joyent/node — pull request #8884 by cjihrig (2014-12-16 22:26:03+00:00)
Title: net: throw on invalid socket timeouts

This commit restricts socket timeouts non-negative, finite numbers. Any other value throws a `TypeError` or `RangeError`. This prevents subtle bugs that can happen due to type coercion.

@misterdjules @tjfontaine