|
@@ -67,11 +67,13 @@ function requestHandler(req, res) {
|
|
|
var local_path = req.url.path_list[0];
|
|
|
logging.log(req.id, req.method, req.url.href);
|
|
|
|
|
|
+ toobusy.maxLag(200);
|
|
|
if (toobusy()) {
|
|
|
res.writeHead(503, {
|
|
|
"Content-Type": "text/plain"
|
|
|
});
|
|
|
res.end("Server is over capaacity :/");
|
|
|
+ logging.log(req.id, 503, Date.now() - req.start + "ms", "(error)");
|
|
|
return;
|
|
|
}
|
|
|
|