Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vapour opened this issue Nov 22, 2015 · 0 comments
Open

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

vapour opened this issue Nov 22, 2015 · 0 comments

Comments

@vapour
Copy link

vapour commented Nov 22, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant