0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
José F. Romaniello 5a2541de81 http: handle errors on idle sockets
This change adds a new event handler to the `error` event of the socket
after it has been used by the http_client.

The purpose of this change is to catch errors on *keep alived*
connections from idle sockets that otherwise will cause an uncaugh error
event on the application.

Fix: #3595
PR-URL: https://github.com/nodejs/node/pull/4482
Reviewed-By: Fedor Indutny <fedor@indutny.com>
2016-01-04 13:35:53 -05:00
..
internal tools: run tick processor without forking 2015-12-29 14:14:43 -08:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js lib: use arrow functions instead of bind 2015-12-17 19:45:57 +09:00
_http_agent.js http: use self.keepAlive instead of self.options.keepAlive 2015-12-30 11:08:16 -08:00
_http_client.js http: handle errors on idle sockets 2016-01-04 13:35:53 -05:00
_http_common.js http: do not emit upgrade on advertisement 2015-12-17 19:25:43 -05:00
_http_incoming.js http: fix non-string header value concatenation 2015-12-30 12:39:17 -05:00
_http_outgoing.js http: Remove an unnecessary assignment 2015-12-17 08:35:59 -08:00
_http_server.js http: 451 status code "Unavailable For Legal Reasons" 2015-12-23 17:31:26 -08:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: be less eager with readable flag 2015-12-03 21:59:44 -05:00
_stream_transform.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js streams: update .readable/.writable to false 2015-12-02 12:56:48 -05:00
_tls_common.js lib,src: ensure '(node:pid)' prefix for stdout logging 2015-12-03 12:24:38 -08:00
_tls_legacy.js lib: use arrow functions instead of bind 2015-12-17 19:45:57 +09:00
_tls_wrap.js lib: use arrow functions instead of bind 2015-12-17 19:45:57 +09:00
assert.js assert: typed array deepequal performance fix 2015-12-21 18:04:01 +01:00
buffer.js buffer: faster case for create Buffer from new Buffer(0) 2015-12-23 17:15:19 -08:00
child_process.js child_process: add safety checks on stdio access 2015-11-12 17:52:09 -08:00
cluster.js lib: use arrow functions instead of bind 2015-12-17 19:45:57 +09:00
console.js console: delete timers that have ended 2015-11-13 11:36:45 -05:00
constants.js
crypto.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
dgram.js udp: remove a needless instanceof Buffer check 2015-12-16 06:53:03 +01:00
dns.js meta: remove use of profanity in source 2015-12-02 11:05:11 -08:00
domain.js domains: fix handling of uncaught exceptions 2015-12-11 14:33:48 -08:00
events.js lib,src: ensure '(node:pid)' prefix for stdout logging 2015-12-03 12:24:38 -08:00
fs.js lib: use arrow functions instead of bind 2015-12-17 19:45:57 +09:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js https: use servername in agent key 2015-12-22 13:51:12 -05:00
module.js module: always decorate thrown errors 2015-12-19 14:15:38 -05:00
net.js lib: use arrow functions instead of bind 2015-12-17 19:45:57 +09:00
os.js lib: remove unused modules 2015-12-25 13:05:23 -08:00
path.js path: make format() consistent and more functional 2015-11-27 11:53:33 +00:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js querystring: Parse multiple separator characters 2015-11-13 10:13:35 -08:00
readline.js readline: deprecate undocumented exports 2015-11-19 17:01:25 -05:00
repl.js repl: use String#repeat instead of Array#join 2015-12-21 10:54:01 -06:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js timers: fail early when callback is not a function 2016-01-04 14:56:19 +11:00
tls.js tls: remove util and calls to util.format 2015-10-28 16:57:55 -07:00
tty.js lib: remove unused modules 2015-12-25 13:05:23 -08:00
url.js doc: fix spelling error in lib/url.js comment 2015-12-30 12:01:47 -08:00
util.js util: faster arrayToHash 2015-12-30 11:54:26 -08:00
v8.js src: add total_available_size to v8 statistics 2015-08-11 22:51:50 +02:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: only apply drain listener if given callback 2015-11-14 08:11:28 -08:00