Fix: More asynchronous glob operations and graceful-fs.
Hope this fixes the "Error: EMFILE, too many open files" in NodeInformationRetrievalJob. See: https://github.com/freifunkhamburg/ffffng/issues/13
This commit is contained in:
parent
bb8d958ad5
commit
2dc7ad0c23
6 changed files with 70 additions and 39 deletions
server
|
@ -7,6 +7,13 @@ global.angular = require('ng-di');
|
|||
|
||||
angular.module('ffffng', []);
|
||||
|
||||
(function () {
|
||||
// Use graceful-fs instead of fs also in all libraries to have more robust fs handling.
|
||||
var realFs = require('fs');
|
||||
var gracefulFs = require('graceful-fs');
|
||||
gracefulFs.gracefulify(realFs);
|
||||
})();
|
||||
|
||||
require('./config');
|
||||
|
||||
require('./logger').tag('main', 'startup').info('Server starting up...');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue