node/test
cjihrig 0cff0521c3 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.

Fixes: https://github.com/joyent/node/issues/8618
PR-URL: https://github.com/joyent/node/pull/8884
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>

Conflicts:
	lib/timers.js
	test/simple/test-net-settimeout.js
	test/simple/test-net-socket-timeout.js
2015-02-13 13:37:24 -05:00
..
addons Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
debugger Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
disabled Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
fixtures Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
gc test: update our branched weakref to v8 3.24 2014-03-17 10:19:47 -07:00
internet dns: allow dns.lookup() to return all addresses 2015-02-06 17:18:47 -05:00
message events: optimize various functions 2015-02-09 17:47:49 +01:00
parallel net: throw on invalid socket timeouts 2015-02-13 13:37:24 -05:00
pummel Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
sequential tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00
testpy test: fix `make test-addons` target 2015-01-12 23:21:51 +01:00
timers test: make test runner multi-arch/mode compatible 2014-10-16 22:39:34 +02:00
common.js tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00