aboutsummaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/net.js b/lib/net.js
index aeb37b2c34..6e3f896a8e 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -361,6 +361,7 @@ Socket.prototype._destroy = function(exception, cb) {
this.destroyed = true;
if (this.server) {
+ COUNTER_NET_SERVER_CONNECTION_CLOSE(this);
this.server._connections--;
if (this.server._emitCloseIfDrained) {
this.server._emitCloseIfDrained();
@@ -1054,6 +1055,7 @@ function onconnection(clientHandle) {
socket.server = self;
DTRACE_NET_SERVER_CONNECTION(socket);
+ COUNTER_NET_SERVER_CONNECTION(socket);
self.emit('connection', socket);
socket.emit('connect');
}