so i have monit accessing a test URL on my nodejs server (running under 
PM2), this happens once a day, causing my nodejs to restart every day

failed protocol test [HTTP] at INET[localhost:80/test] via TCP -- HTTP: 
Error receiving data -- Connection reset by peer


I am using express,
var express = require('express'),
        http = require('http'),
        https = require('https'),
        admin = require('./admin');

web.get('/test', admin.test);

and on admin.js

exports.test = function(req, res) {
        res.send("OK");
}

I don't see any errors on my logs whenever this happens, i have these 
catches

process.on('uncaughtException', function(err) { c.log("Uncaught 
Exception",err.stack); });
process.addListener('SIGPIPE', function (err) { c.log("SIGPIPE",err.stack); 
});


I don't know where the connection reset happens, anyone has any idea how i 
can isolate the problem?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/c90384ed-8b11-4201-ab5c-573b36212e3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to