diff --git a/examples/http.js b/examples/http.js index 5fd4f8fb..29714c3b 100644 --- a/examples/http.js +++ b/examples/http.js @@ -1,7 +1,7 @@ ;(function(){ var cluster = require('cluster'); if(cluster.isMaster){ - return cluster.fork() && cluster.on('exit', function(){ cluster.fork(); require('../lib/crashed'); }); + return cluster.fork() && cluster.on('exit', function(){ return;cluster.fork(); require('../lib/crashed'); }); } var fs = require('fs'); diff --git a/gun.js b/gun.js index b9009e89..731fedb5 100644 --- a/gun.js +++ b/gun.js @@ -1145,6 +1145,7 @@ var hear = mesh.hear = function(raw, peer){ if(!raw){ return } + require('fs').writeFileSync('heardatadebug.json',raw,noop); if(opt.pack <= raw.length){ return mesh.say({dam: '!', err: "Message too big!"}, peer) } if(mesh === this){ hear.d += raw.length||0 ; ++hear.c } // STATS! var tmp = raw[0], msg;