From 474ff9cd7442abd849a8363e7424f55c3fd1fcca Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 20 Jun 2022 19:50:03 +0000 Subject: [PATCH] Decrease the bad request timeout, as I've tripped it myself occasionally. And let the iframe hit the WebSerial interface. I might have a fun use for that. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3917 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/httpd.js | 2 +- core/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/httpd.js b/core/httpd.js index e295a7dd..5ff91847 100644 --- a/core/httpd.js +++ b/core/httpd.js @@ -364,7 +364,7 @@ function badRequest(client, reason) { var old = gBadRequests[client.peerName]; if (!old) { gBadRequests[client.peerName] = { - expire: new Date(now.getTime() + 10 * 60 * 1000), + expire: new Date(now.getTime() + 1 * 60 * 1000), count: 1, reason: reason, }; diff --git a/core/index.html b/core/index.html index 2514c3ad..27f38b11 100644 --- a/core/index.html +++ b/core/index.html @@ -57,7 +57,7 @@
- +