Introduction
I´ve a nodejs application with express that have some post and get request. The whole website works just fine without problems.
Problem
If I call the post request to much in time the site will crash. It will not respond to other requests. Doesn´t matter if it´s get or post request.
My Code
Client side
It´s a easy post request to set a client permission. There is no callback defined.
$.post(
'/clients/set/client/permission',
{
permName: globPermissionTable[permName],
value: checked,
id: '<%= data[0].id %>'
}
);
Server side
Just a easy post segment. Even if I will uncomment all in the request it will be not response.
app.post('/clients/set/client/permission', function(req, res) {
// Permissioncheck
/*var permName = req.body.permName, val = req.body.value, id = req.body.id;
if(helper.checkParams([permName, val, id])) {
database.SetClientPermissions(parseInt(id), permName, (val === 'true') ? true : false);
};*/
});