node/test
isaacs d258fb0212 http: More useful setTimeout API on server
This adds the following to HTTP:

* server.setTimeout(msecs, callback)
  Sets all new connections to time out after the specified time, at
  which point it emits 'timeout' on the server, passing the socket as an
  argument.
  In this way, timeouts can be handled in one place consistently.
* req.setTimeout(), res.setTimeout()
  Essentially an alias to req/res.socket.setTimeout(), but without
  having to delve into a "buried" object.  Adds a listener on the
  req/res object, but not on the socket.
* server.timeout
  Number of milliseconds before incoming connections time out.
  (Default=1000*60*2, as before.)

Furthermore, if the user sets up their own timeout listener on either
the server, the request, or the response, then the default behavior
(destroying the socket) is suppressed.

Fix #3460
2013-03-06 12:43:48 -08:00
..
addons test: modify async native test.js to test for #4820 2013-02-21 13:14:07 -08:00
disabled Merge remote-tracking branch 'ry/v0.8' into master 2013-02-18 10:21:08 -08:00
fixtures test: Fix debugger repl tests 2013-02-26 16:49:17 -08:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet DNS: Support NAPTR queries 2013-03-06 14:31:22 +04:00
message process: separate nextTick domain logic 2013-02-27 16:37:10 -08:00
pummel test: Pass cli flags in pummel/test-regress-GH-892 2013-03-06 11:44:29 -08:00
simple http: More useful setTimeout API on server 2013-03-06 12:43:48 -08:00
common.js test: optionally set common.PORT via env variable 2013-03-02 19:09:39 +01:00