|
|
@ -515,25 +515,8 @@ OutgoingMessage.prototype.end = function(data, encoding) { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var ServerResponse, ClientRequest; |
|
|
|
|
|
|
|
OutgoingMessage.prototype._finish = function() { |
|
|
|
assert(this.connection); |
|
|
|
|
|
|
|
if (!ServerResponse) |
|
|
|
ServerResponse = require('_http_server').ServerResponse; |
|
|
|
|
|
|
|
if (!ClientRequest) |
|
|
|
ClientRequest = require('_http_client').ClientRequest; |
|
|
|
|
|
|
|
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'); |
|
|
|
}; |
|
|
|
|
|
|
|