Update to GreenRhomus 1.0.1
This commit is contained in:
parent
003421eaf2
commit
da71e8d868
2 changed files with 9 additions and 2 deletions
9
index.js
9
index.js
|
@ -436,7 +436,14 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
|
||||
handler = createFastCGIHandler(options);
|
||||
handler.on("error", function (error) {
|
||||
var errorcode = (error.code == "ENOTFOUND" || error.code == "EHOSTUNREACH" || error.code == "ECONNREFUSED") ? 503 : 500;
|
||||
var errorcode = 0;
|
||||
if (error.code == "ENOTFOUND" || error.code == "EHOSTUNREACH" || error.code == "ECONNREFUSED") {
|
||||
errorcode = 503;
|
||||
} else if (error.code == "EMFILE") {
|
||||
errorcode = 429;
|
||||
} else {
|
||||
errorcode = 500;
|
||||
}
|
||||
if (!callServerError) {
|
||||
res.writeHead(errorcode, {
|
||||
"Content-Type": "text/html",
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "GreenRhombus FastCGI client for SVR.JS",
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.1"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue