I think that's all the leaks accounted for though not yet fixed.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4799 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-27 15:45:51 +00:00
parent 08b5ade8ec
commit 923d6f9835
7 changed files with 22 additions and 16 deletions

View File

@ -67,11 +67,8 @@ function socket(request, response, client) {
if (process && process.task) {
process.task.kill();
}
}
response.onError = async function(error) {
if (process && process.task) {
process.task.kill();
if (process) {
process.timeout = 0;
}
}
@ -157,7 +154,7 @@ function socket(request, response, client) {
process.lastPing = now;
}
if (again) {
if (again && process.timeout) {
setTimeout(ping, process.timeout);
}
}

View File

@ -983,7 +983,7 @@ loadSettings().then(function() {
}
httpd.all("/login", auth.handler);
httpd.all("/app/socket", app.socket);
httpd.all("", function(request, response) {
httpd.all("", function default_http_handler(request, response) {
let match;
if (request.uri === "/" || request.uri === "") {
try {