diff options
Diffstat (limited to 'lib/http.js')
-rw-r--r-- | lib/http.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js index 3ebca09439..ef85c1cddf 100644 --- a/lib/http.js +++ b/lib/http.js @@ -841,9 +841,11 @@ OutgoingMessage.prototype._finish = function() { assert(this.connection); if (this instanceof ServerResponse) { DTRACE_HTTP_SERVER_RESPONSE(this.connection); + COUNTER_HTTP_SERVER_RESPONSE(); } else { assert(this instanceof ClientRequest); DTRACE_HTTP_CLIENT_REQUEST(this, this.connection); + COUNTER_HTTP_CLIENT_REQUEST(); } this.emit('finish'); }; @@ -1472,6 +1474,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) { DTRACE_HTTP_CLIENT_RESPONSE(socket, req); + COUNTER_HTTP_CLIENT_RESPONSE(); req.emit('response', res); req.res = res; res.req = req; @@ -1779,6 +1782,7 @@ function connectionListener(socket) { debug('server response shouldKeepAlive: ' + shouldKeepAlive); res.shouldKeepAlive = shouldKeepAlive; DTRACE_HTTP_SERVER_REQUEST(req, socket); + COUNTER_HTTP_SERVER_REQUEST(); if (socket._httpMessage) { // There are already pending outgoing res, append. |