Comparing version 0.1.4 to 0.1.5
@@ -127,10 +127,2 @@ var tls = require('tls'); | ||
// check that we got no errors | ||
serviceSocket.on("error", function (exception) { | ||
log(Log.info,'Can\'t open socket to the server. Error: ' + JSON.stringify(exception)); | ||
proxySocket.end(); | ||
}); | ||
// on connect (for ssltunnel server) | ||
@@ -150,2 +142,18 @@ serviceSocket.on("connect", function () { | ||
// check that we got no errors when talking to the server | ||
serviceSocket.on("error", function (exception) { | ||
log(Log.info,'Error communicating with the server. Error: ' + JSON.stringify(exception)); | ||
proxySocket.end(); | ||
}); | ||
// check that we got no errors when talking to the client | ||
proxySocket.on("error", function (exception) { | ||
log(Log.info,'Error communicating with the client. Error: ' + JSON.stringify(exception)); | ||
serviceSocket.end(); | ||
}); | ||
// print diagnostics when connection to server ends | ||
@@ -152,0 +160,0 @@ serviceSocket.on("end", function () { |
@@ -5,3 +5,3 @@ { | ||
"description": "TCP over SSL / TLS tunnel", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"homepage": "https://github.com/anodejs/node-ssltunnel", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25152
16
211