node/lib
Fedor Indutny d9bf6e0b79 net: use _server for internal book-keeping
The role of `this.server` is now split between `this._server` and
`this.server`. Where the first one is used for counting active
connections of `net.Server`, and the latter one is just a public API for
users' consumption.

The reasoning for this is simple, `TLSSocket` instances wrap
`net.Socket` instances, thus both refer to the `net.Server` through the
`this.server` property. However, only one of them should be used for
`net.Server` connection count book-keeping, otherwise double-decrement
will happen on socket destruction.

Fix: #5083
PR-URL: https://github.com/nodejs/node/pull/5262
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-03-02 14:01:11 -08:00
..
internal child_process: fix data loss with readable event 2016-03-02 14:01:11 -08:00
_debug_agent.js debugger: assert test before accessing this.binding 2016-03-02 14:01:11 -08:00
_debugger.js lib: use arrow functions instead of bind 2016-03-02 14:01:11 -08:00
_http_agent.js http: use self.keepAlive instead of self.options.keepAlive 2016-01-19 11:52:33 -08:00
_http_client.js http: do not emit upgrade on advertisement 2016-03-02 14:01:11 -08:00
_http_common.js http: remove reference to onParserExecute 2016-03-02 14:01:11 -08:00
_http_incoming.js http: fix non-string header value concatenation 2016-02-15 11:30:23 -08:00
_http_outgoing.js http: strictly forbid invalid characters from headers 2016-02-09 08:42:15 -08:00
_http_server.js lib: fix style issues after eslint update 2016-02-15 11:30:23 -08:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08: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: refactor redeclared variables 2016-03-02 14:01:11 -08:00
_stream_transform.js stream: remove useless if test in transform 2016-02-15 11:30:23 -08:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-23 08:38:33 -08:00
_stream_writable.js streams: 5% throughput gain when sending small chunks 2016-03-02 14:01:11 -08:00
_tls_common.js tls: scope loop vars with let 2016-03-02 14:01:11 -08:00
_tls_legacy.js lib: use arrow functions instead of bind 2016-03-02 14:01:11 -08:00
_tls_wrap.js net: use _server for internal book-keeping 2016-03-02 14:01:11 -08:00
assert.js lib: fix style issues after eslint update 2016-02-15 11:30:23 -08:00
buffer.js buffer: allow encoding param to collapse 2016-03-02 14:01:11 -08:00
child_process.js child_process: add safety checks on stdio access 2015-12-23 08:38:33 -08:00
cluster.js cluster: dont rely on this in fork 2016-03-02 14:01:11 -08:00
console.js console: apply null as this for util.format 2016-03-02 14:01:11 -08:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js streams: refactor LazyTransform to internal/ 2015-09-15 13:53:21 -04:00
dgram.js tools: enable no-redeclare rule for linter 2016-03-02 14:01:11 -08:00
dns.js dns: throw a TypeError in lookupService with invalid port 2016-03-02 14:01:11 -08:00
domain.js domains: fix handling of uncaught exceptions 2015-12-23 08:38:33 -08:00
events.js lib,test: remove extra semicolons 2016-03-02 14:01:11 -08:00
freelist.js lib,test: add freelist deprecation and test 2015-07-17 19:48:31 -07:00
fs.js fs: refactor redeclared variables 2016-03-02 14:01:11 -08:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 08:39:34 +10:00
https.js https: evict cached sessions on error 2016-03-02 14:01:11 -08:00
module.js module: refactor redeclared variable 2016-03-02 14:01:11 -08:00
net.js net: use _server for internal book-keeping 2016-03-02 14:01:11 -08:00
os.js lib: remove unused modules 2016-01-19 11:52:39 -08:00
path.js lib: scope loop variables 2016-03-02 14:01:11 -08: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: improve parse() performance 2016-03-02 14:01:11 -08:00
readline.js readline: Remove XXX and output debuglog 2016-02-15 11:30:23 -08:00
repl.js repl: remove variable redeclaration 2016-03-02 14:01:11 -08:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 08:39:34 +10:00
string_decoder.js lib: remove string_decoder.js var redeclarations 2016-03-02 14:01:11 -08:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js tools: lint for spacing around unary operators 2016-03-02 14:01:11 -08:00
tls.js lib: fix style issues after eslint update 2016-02-15 11:30:23 -08:00
tty.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
url.js url: change scoping of variables with let 2016-03-02 14:01:11 -08:00
util.js lib: scope loop variables 2016-03-02 14:01:11 -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-12-23 08:38:33 -08:00