Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
commit
2f74324dac
@ -3,6 +3,13 @@
|
|||||||
globals module
|
globals module
|
||||||
*/
|
*/
|
||||||
var domain = ' http://localhost:3000/';
|
var domain = ' http://localhost:3000/';
|
||||||
|
|
||||||
|
// You can `kill -USR2` the node process and it will write out a heap dump.
|
||||||
|
// If your system doesn't support dumping, comment this out and install with
|
||||||
|
// `npm install --production`
|
||||||
|
// See: https://strongloop.github.io/strongloop.com/strongblog/how-to-heap-snapshots/
|
||||||
|
require('heapdump');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
// the address you want to bind to, :: means all ipv4 and ipv6 addresses
|
// the address you want to bind to, :: means all ipv4 and ipv6 addresses
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"flow-bin": "^0.59.0",
|
"flow-bin": "^0.59.0",
|
||||||
|
"heapdump": "^0.3.9",
|
||||||
"jshint": "~2.9.1",
|
"jshint": "~2.9.1",
|
||||||
"less": "2.7.1",
|
"less": "2.7.1",
|
||||||
"lesshint": "^4.5.0",
|
"lesshint": "^4.5.0",
|
||||||
|
|||||||
@ -257,11 +257,15 @@ var getMessages = function (env, chanName, handler, cb) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var errorState = false;
|
var errorState = false;
|
||||||
try {
|
|
||||||
readMessages(chan.path, function (msg) {
|
readMessages(chan.path, function (msg) {
|
||||||
if (!msg || errorState) { return; }
|
if (!msg || errorState) { return; }
|
||||||
//console.log(msg);
|
//console.log(msg);
|
||||||
|
try {
|
||||||
handler(msg);
|
handler(msg);
|
||||||
|
} catch (e) {
|
||||||
|
errorState = true;
|
||||||
|
return void cb(err);
|
||||||
|
}
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
errorState = true;
|
errorState = true;
|
||||||
@ -270,11 +274,6 @@ var getMessages = function (env, chanName, handler, cb) {
|
|||||||
chan.atime = +new Date();
|
chan.atime = +new Date();
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
} catch (err2) {
|
|
||||||
console.error(err2);
|
|
||||||
cb(err2);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ define([
|
|||||||
var patchTransformer = config.patchTransformer;
|
var patchTransformer = config.patchTransformer;
|
||||||
var validateContent = config.validateContent;
|
var validateContent = config.validateContent;
|
||||||
var avgSyncMilliseconds = config.avgSyncMilliseconds;
|
var avgSyncMilliseconds = config.avgSyncMilliseconds;
|
||||||
var logLevel = typeof(config.logLevel) !== 'undefined'? config.logLevel : 1;
|
var logLevel = typeof(config.logLevel) !== 'undefined'? config.logLevel : 2;
|
||||||
var readOnly = config.readOnly || false;
|
var readOnly = config.readOnly || false;
|
||||||
var sframeChan = config.sframeChan;
|
var sframeChan = config.sframeChan;
|
||||||
var metadataMgr = config.metadataMgr;
|
var metadataMgr = config.metadataMgr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user