Defer web requests if JSON lock contended

Use the web server's queuing mechanism to call us back later.
This commit is contained in:
Will Miles
2024-08-04 14:02:05 -04:00
parent dc317220b3
commit bec7e54f7f
3 changed files with 6 additions and 3 deletions

View File

@@ -288,7 +288,7 @@ void initServer()
bool isConfig = false;
if (!requestJSONBufferLock(14)) {
serveJsonError(request, 503, ERR_NOBUF);
request->deferResponse();
return;
}