eureca.io icon indicating copy to clipboard operation
eureca.io copied to clipboard

when i use eureca.io with node-pool leak memory

Open vapour opened this issue 9 years ago • 0 comments

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

vapour avatar Nov 22 '15 13:11 vapour