node/lib
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
..
_debugger.js streams2: Call read(0) on resume() 2012-12-14 10:52:28 -08:00
_linklist.js Update copyright headers 2011-03-14 17:37:05 -07:00
_stream_duplex.js stdio: Set readable/writable flags properly 2013-01-17 10:42:44 -08:00
_stream_passthrough.js stream: _write takes an encoding argument 2013-03-05 14:27:15 -08:00
_stream_readable.js stream: Raise readable high water mark in powers of 2 2013-03-06 11:44:30 -08:00
_stream_transform.js stream: Remove bufferSize option 2013-03-06 11:44:30 -08:00
_stream_writable.js stream: Remove unnecessary nextTick usage in Writable 2013-03-06 11:44:29 -08:00
assert.js assert: improve support for new execution contexts 2012-12-29 11:19:14 -08:00
buffer.js buffer: check logic simplification 2013-02-20 20:34:34 +01:00
child_process.js child_process: handle ENOENT correctly on Windows 2013-03-05 23:47:35 -08:00
cluster.js cluster: Rename destroy() to kill(signal=SIGTERM) 2013-03-03 17:26:38 -08:00
console.js console: Support formatting options in trace() 2013-01-18 15:39:08 -08:00
constants.js Update copyright headers 2011-03-14 17:37:05 -07:00
crypto.js stream: _write takes an encoding argument 2013-03-05 14:27:15 -08:00
dgram.js lib, src: remove errno global 2013-02-28 23:11:47 +01:00
dns.js DNS: Support NAPTR queries 2013-03-06 14:31:22 +04:00
domain.js process: separate nextTick domain logic 2013-02-27 16:37:10 -08:00
events.js events: loop backwards in removeListener 2013-03-05 12:47:57 +04:00
freelist.js Update copyright headers 2011-03-14 17:37:05 -07:00
fs.js stream: Remove bufferSize option 2013-03-06 11:44:30 -08:00
http.js http: More useful setTimeout API on server 2013-03-06 12:43:48 -08:00
https.js https: optimize https.createConnection() 2012-12-28 16:42:51 +01:00
module.js core: Remove the nextTick for running the main file 2013-02-27 16:29:36 -08:00
net.js net: use close callback, not process.nextTick 2013-03-06 16:15:18 +01:00
os.js os: rename tmpDir() to tmpdir() for consistency 2013-01-30 04:24:58 +01:00
path.js lint 2013-02-22 16:30:27 -08:00
punycode.js punycode: update to v1.2.0 2013-01-16 16:53:11 +01:00
querystring.js trivial: Doc typo and lint fix 2012-06-19 14:07:48 -07:00
readline.js events: add check for listeners length 2013-03-01 17:36:47 -08:00
repl.js make repl compatible with domains 2013-03-03 15:28:45 -08:00
stream.js events: add check for listeners length 2013-03-01 17:36:47 -08:00
string_decoder.js Don't allow invalid encodings in StringDecoder class 2012-12-13 17:00:22 -08:00
sys.js Fix #3577 Un-break require('sys') 2012-06-28 10:14:03 -07:00
timers.js timer: move setImmediate from timer to uv_check 2013-02-15 16:11:05 -08:00
tls.js stream: _write takes an encoding argument 2013-03-05 14:27:15 -08:00
tty.js lib, src: remove errno global 2013-02-28 23:11:47 +01:00
url.js url: make url.format escape delimiters in path and query 2012-10-30 09:16:13 -07:00
util.js node: Add --throw-deprecation 2013-03-06 11:44:29 -08:00
vm.js lint 2012-03-03 23:48:57 -08:00
zlib.js stream: _write takes an encoding argument 2013-03-05 14:27:15 -08:00