My gateway service (node 0.10 + request 2.70.0) handles dozens of requests per second . For each income request it sends request to other service (Php 5.5). Every couple of days the gateway stop sending requests to Php.
var request = require("request");
app.use(function(req, res,next){
logger.info("start sending");
request[req.method.toLocaleLowerCase()](options, function(error, response, body){
if(!error){
logger.info("send successfuly");
}
else{
logger.error(error);
}
});
});
For each request all the success logs are written. But when the error happening, only the 'start send' log is written. Restart Node fix the error. I can't see the error in my logs.
via Lior Strichash
No comments:
Post a Comment