node/lib
Fedor Indutny 1a3ca8223e http_client: ensure empty socket on error
Read all pending data out of the socket on `error` event and ensure that
no `data`/`end` handlers will be invoked on `socket.destroy()`.
Otherwise following assertion happens:

    AssertionError: null == true
        at TLSSocket.socketOnData (_http_client.js:308:3)
        at TLSSocket.emit (events.js:107:17)
        at TLSSocket.Readable.read (_stream_readable.js:373:10)
        at TLSSocket.socketCloseListener (_http_client.js:229:10)
        at TLSSocket.emit (events.js:129:20)
        at TCP.close (net.js:476:12)

Fix: https://github.com/joyent/node/issues/9348
PR-URL: https://github.com/iojs/io.js/pull/1103
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Nicu Micleușanu <micnic90@gmail.com>
2015-03-09 09:25:09 -04:00
..
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js lib: make debug client connect to 127.0.0.1 2015-02-06 16:49:47 +01:00
_http_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_http_client.js http_client: ensure empty socket on error 2015-03-09 09:25:09 -04:00
_http_common.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
_http_incoming.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
_http_outgoing.js http: send Content-Length when possible 2015-03-05 22:17:35 +01:00
_http_server.js tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
_stream_duplex.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_transform.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_wrap.js streams: introduce StreamWrap and JSStream 2015-02-24 22:38:21 +03:00
_stream_writable.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_tls_common.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
_tls_legacy.js stream_base: introduce StreamBase 2015-02-22 22:31:57 +03:00
_tls_wrap.js tls_wrap: do not hold persistent ref to parent 2015-03-06 11:02:01 -05:00
assert.js assert: introduce deepStrictEqual 2015-02-09 14:14:20 +03:00
buffer.js lib: avoid .toLowerCase() call in Buffer#write() 2015-03-05 19:44:50 +01:00
child_process.js child_process: add debug and error details 2015-02-05 12:58:15 -05:00
cluster.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
console.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js crypto: support passwords in publicEncrypt 2015-02-02 23:21:49 +01:00
dgram.js dgram: check close callback is function 2015-02-02 18:44:05 +01:00
dns.js dns: allow dns.lookup() to return all addresses 2015-02-06 17:18:47 -05:00
domain.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
events.js events: optimize listener array cloning 2015-03-04 22:21:47 -05:00
freelist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
fs.js fs: fix .write() not coercing non-string values 2015-03-08 14:42:09 -07:00
http.js http: replace util._extend() with [].slice() 2015-02-02 14:52:02 -08:00
https.js https: simpler argument check 2015-02-07 12:00:16 -08:00
module.js module: replace NativeModule.require 2015-02-13 13:37:25 -05:00
net.js net: allow port 0 in connect() 2015-03-05 10:01:15 -05:00
os.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
path.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js punycode: update to v1.3.2 2014-11-28 13:21:43 +03:00
querystring.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
readline.js readline: use native codePointAt 2015-02-22 20:07:25 -08:00
repl.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
smalloc.js smalloc: export constants from C++ 2015-03-04 11:37:12 +03:00
stream.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
string_decoder.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
sys.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
timers.js timer: Improve performance of callbacks 2015-03-04 10:08:04 -07:00
tls.js tls: more secure defaults 2015-02-16 12:33:12 +01:00
tty.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
url.js url: remove redundant assignment in url.parse 2015-03-08 16:36:29 -04:00
util.js util: handle symbols properly in format() 2015-02-24 10:14:24 -05:00
v8.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00