eureca.io
eureca.io copied to clipboard
when i use eureca.io with node-pool leak memory
when need destroy the connection,i use the code below:
name : 'rpc-eureca.io',
create : function(callback) {
console.log('create');
var client = new Eureca.Client({uri:'http://ns.xxx.com/', transport:'sockjs'});
client.ready(function (serverProxy) {
callback(null, {instance:client, proxy:serverProxy});
});
},
destroy : function(client) {
console.log('destroy');
var instance = client.instance;
instance.socket.close();
}
indeed it dos not really destroy the connection, because the memory not gc.
sorry for my bad english