proxying-agent
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -128,2 +128,7 @@ 'use strict'; | ||
}.bind(this)); | ||
tlsSocket.once('error', function(error) { | ||
this.emitError(req, 'Tunnel socket error: ' + error); | ||
}.bind(this)); | ||
}.bind(this)); | ||
@@ -142,3 +147,3 @@ | ||
} | ||
} | ||
}; | ||
@@ -214,3 +219,3 @@ /** | ||
newReq.end(); | ||
} | ||
}; | ||
@@ -226,3 +231,3 @@ /** | ||
} | ||
}; | ||
@@ -242,3 +247,3 @@ /** | ||
} | ||
} | ||
}; | ||
@@ -259,7 +264,7 @@ /** | ||
this.openSockets[req].on('close', onClose); | ||
} | ||
}; | ||
ProxyingAgent.prototype.getSocket = function(req) { | ||
return this.openSockets[req]; | ||
} | ||
}; | ||
@@ -276,7 +281,7 @@ /** | ||
return this.agent.prototype.createSocket.call(this, name, host, port, localAddress, req); | ||
} | ||
}; | ||
ProxyingAgent.prototype.emitError = function(req, message) { | ||
req.emit('error', new Error(message)); | ||
} | ||
}; | ||
@@ -283,0 +288,0 @@ |
{ | ||
"name": "proxying-agent", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Node HTTP/HTTPS Forward Proxy Agent", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
30903
8
588
4