forked from svrjs/svrjs
Update to SVR.JS 3.7.2
This commit is contained in:
parent
c9df74c745
commit
d01064cc17
4 changed files with 28 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.7.1</title>
|
<title>SVR.JS 3.7.2</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Welcome to SVR.JS 3.7.1</h1>
|
<h1>Welcome to SVR.JS 3.7.2</h1>
|
||||||
<br/>
|
<br/>
|
||||||
<img src="/logo.png" style="width: 256px;" />
|
<img src="/logo.png" style="width: 256px;" />
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
</div>
|
</div>
|
||||||
<p>Changes:</p>
|
<p>Changes:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Fixed bug with SVR.JS hang-up check requests logged in server logs (bug occurred on upstream Node.JS v12.22.12).</li>
|
<li>ENAMETOOLONG errors now correspond to 414 code.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Bugs:</p>
|
<p>Bugs:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.7.1 Licenses</title>
|
<title>SVR.JS 3.7.2 Licenses</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.7.1 Licenses</h1>
|
<h1>SVR.JS 3.7.2 Licenses</h1>
|
||||||
<h2>SVR.JS 3.7.1</h2>
|
<h2>SVR.JS 3.7.2</h2>
|
||||||
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
|
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
|
||||||
MIT License<br/>
|
MIT License<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
|
||||||
SOFTWARE.<br/>
|
SOFTWARE.<br/>
|
||||||
</div>
|
</div>
|
||||||
<h2>Packages used by SVR.JS 3.7.1 and utilities</h2>
|
<h2>Packages used by SVR.JS 3.7.2 and utilities</h2>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="float: right;">License: MIT</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
|
|
21
svr.js
21
svr.js
|
@ -81,7 +81,7 @@ function deleteFolderRecursive(path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var os = require("os");
|
var os = require("os");
|
||||||
var version = "3.7.1";
|
var version = "3.7.2";
|
||||||
var singlethreaded = false;
|
var singlethreaded = false;
|
||||||
|
|
||||||
if (process.versions) process.versions.svrjs = version; //Inject SVR.JS into process.versions
|
if (process.versions) process.versions.svrjs = version; //Inject SVR.JS into process.versions
|
||||||
|
@ -2175,6 +2175,8 @@ if (!cluster.isPrimary) {
|
||||||
additionalError = 404; // Assume that file doesn't exist
|
additionalError = 404; // Assume that file doesn't exist
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
additionalError = 403;
|
additionalError = 403;
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
additionalError = 414;
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
additionalError = 503;
|
additionalError = 503;
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -2574,6 +2576,8 @@ if (!cluster.isPrimary) {
|
||||||
additionalError = 404; // Assume that file doesn't exist
|
additionalError = 404; // Assume that file doesn't exist
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
additionalError = 403;
|
additionalError = 403;
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
additionalError = 414;
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
additionalError = 503;
|
additionalError = 503;
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -3246,6 +3250,8 @@ if (!cluster.isPrimary) {
|
||||||
additionalError = 404; // Assume that file doesn't exist
|
additionalError = 404; // Assume that file doesn't exist
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
additionalError = 403;
|
additionalError = 403;
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
additionalError = 414;
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
additionalError = 503;
|
additionalError = 503;
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -3610,6 +3616,9 @@ if (!cluster.isPrimary) {
|
||||||
callServerError(403);
|
callServerError(403);
|
||||||
serverconsole.errmessage("Access denied.");
|
serverconsole.errmessage("Access denied.");
|
||||||
return;
|
return;
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
callServerError(414);
|
||||||
|
return;
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
callServerError(503);
|
callServerError(503);
|
||||||
return;
|
return;
|
||||||
|
@ -3882,6 +3891,8 @@ if (!cluster.isPrimary) {
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
callServerError(403);
|
callServerError(403);
|
||||||
serverconsole.errmessage("Access denied.");
|
serverconsole.errmessage("Access denied.");
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
callServerError(414);
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
callServerError(503);
|
callServerError(503);
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -3915,6 +3926,8 @@ if (!cluster.isPrimary) {
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
callServerError(403);
|
callServerError(403);
|
||||||
serverconsole.errmessage("Access denied.");
|
serverconsole.errmessage("Access denied.");
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
callServerError(414);
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
callServerError(503);
|
callServerError(503);
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -4036,6 +4049,8 @@ if (!cluster.isPrimary) {
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
callServerError(403);
|
callServerError(403);
|
||||||
serverconsole.errmessage("Access denied.");
|
serverconsole.errmessage("Access denied.");
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
callServerError(414);
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
callServerError(503);
|
callServerError(503);
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -4095,6 +4110,8 @@ if (!cluster.isPrimary) {
|
||||||
} else if (err.code == "EACCES") {
|
} else if (err.code == "EACCES") {
|
||||||
callServerError(403);
|
callServerError(403);
|
||||||
serverconsole.errmessage("Access denied.");
|
serverconsole.errmessage("Access denied.");
|
||||||
|
} else if (err.code == "ENAMETOOLONG") {
|
||||||
|
callServerError(414);
|
||||||
} else if (err.code == "EMFILE") {
|
} else if (err.code == "EMFILE") {
|
||||||
callServerError(503);
|
callServerError(503);
|
||||||
} else if (err.code == "ELOOP") {
|
} else if (err.code == "ELOOP") {
|
||||||
|
@ -5037,7 +5054,7 @@ function start(init) {
|
||||||
scryptCache = scryptCache.filter(function(entry) {
|
scryptCache = scryptCache.filter(function(entry) {
|
||||||
return entry.addDate > (new Date() - 3600000);
|
return entry.addDate > (new Date() - 3600000);
|
||||||
});
|
});
|
||||||
}, 10000);
|
}, 1800000);
|
||||||
}
|
}
|
||||||
if (!cluster.isPrimary && cluster.isPrimary !== undefined) {
|
if (!cluster.isPrimary && cluster.isPrimary !== undefined) {
|
||||||
process.on("message", function (line) {
|
process.on("message", function (line) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.7.1 Tests</title>
|
<title>SVR.JS 3.7.2 Tests</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.7.1 Tests</h1>
|
<h1>SVR.JS 3.7.2 Tests</h1>
|
||||||
<h2>Directory</h2>
|
<h2>Directory</h2>
|
||||||
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
||||||
<h2>Directory (with query)</h2>
|
<h2>Directory (with query)</h2>
|
||||||
|
|
Reference in a new issue