Skip to content

EMFILE issues (too many files open) on Mac OS #27

@luisnomad

Description

@luisnomad

[2015-10-05 13:35:15.305] [WARN] tracker.js - announce error from udp://tracker.istole.it:80/announce: bind EMFILE
[2015-10-05 13:35:15.305] [WARN] tracker.js - retry announce 'started' in 5s

It looks like it is a OS specific issue, and people seem to suggest the same solution:
http://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1

But still it does not work for everyone -me included, I still get the error-.

I have tried using graceful-js, but no luck.

Additionally, whenever I am running this sample code, my laptop becomes extremely hot and battery drains fast:

var Client = require('node-torrent');
var client = new Client({logLevel: 'DEBUG'});
var torrent = client.addTorrent('a.torrent');

// when the torrent completes, move it's files to another area
torrent.on('complete', function() {
    console.log('complete!');
    torrent.files.forEach(function(file) {
        var newPath = '/new/path/' + file.path;
        fs.rename(file.path, newPath);
        // while still seeding need to make sure file.path points to the right place
        file.path = newPath;
    });
});

Has anyone used this library successfully on Mac OS? Is there a solution for the EMFILE error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions