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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user