Browse Source

Changed HTTP response code when out of websocket slots

fastled
Xose Pérez 7 years ago
parent
commit
faf8b1d92d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/web.ino

+ 1
- 1
code/espurna/web.ino View File

@ -697,7 +697,7 @@ void _onAuth(AsyncWebServerRequest *request) {
if (now - _ticket[index].timestamp > WS_TIMEOUT) break; if (now - _ticket[index].timestamp > WS_TIMEOUT) break;
} }
if (index == WS_BUFFER_SIZE) { if (index == WS_BUFFER_SIZE) {
request->send(423);
request->send(429);
} else { } else {
_ticket[index].ip = ip; _ticket[index].ip = ip;
_ticket[index].timestamp = now; _ticket[index].timestamp = now;


Loading…
Cancel
Save