summaryrefslogtreecommitdiff
path: root/lib/_http_outgoing.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_http_outgoing.js')
-rw-r--r--lib/_http_outgoing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js
index 9139350486..d150a9d93c 100644
--- a/lib/_http_outgoing.js
+++ b/lib/_http_outgoing.js
@@ -183,7 +183,7 @@ OutgoingMessage.prototype.setTimeout = function setTimeout(msecs, callback) {
}
if (!this.socket) {
- this.once('socket', function(socket) {
+ this.once('socket', function socketSetTimeoutOnConnect(socket) {
socket.setTimeout(msecs);
});
} else {
@@ -200,7 +200,7 @@ OutgoingMessage.prototype.destroy = function destroy(error) {
if (this.socket) {
this.socket.destroy(error);
} else {
- this.once('socket', function(socket) {
+ this.once('socket', function socketDestroyOnConnect(socket) {
socket.destroy(error);
});
}