ESPAsyncWebServer/src
matt123p 2f37037029 Add function so that the total number of web-socket clients can be limited (#591)
* Add function so that the total number of web-socket clients can be limited easily.  This is to cope with a problem when a browser does not close the web-socket connection correctly.  I have observed this on Chromium based browsers.  The memory leak will eventually lead to the server crashing.  Normally only one connection per client is required, so limiting the number of connections would not normally cause any problems.

* Prevent an assertion failure when using WebSockets

Frequently when using Web Sockets you will get the assert failure:
    	assertion "new_rcv_ann_wnd <= 0xffff" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/lwip/lwip/src/core/tcp.c", line 779, function: tcp_update_rcv_ann_wnd

This will happen particulary when you close the browser window.  This change
prevents the issue from occuring.

* Do not use thread locking with the ESP8266, but instead use an empty placeholder class that can be used to implement locking at a later date.

* Do not use thread locking with the ESP8266, but instead use an empty placeholder class that can be used to implement locking at a later date.

* Add function so that the total number of web-socket clients can be limited easily.  This is to cope with a problem when a browser does not close the web-socket connection correctly.  I have observed this on Chromium based browsers.  The memory leak will eventually lead to the server crashing.  Normally only one connection per client is required, so limiting the number of connections would not normally cause any problems.

* Set the default number of ws clients dependent on processor.
2019-09-24 22:42:40 +03:00
..
AsyncEventSource.cpp adjust canHandle() for AsyncEventSource (#474) 2019-06-22 17:59:46 +02:00
AsyncEventSource.h Initial ESP32 compatibility 2017-09-07 22:01:58 +03:00
AsyncJson.h PrettyAsyncJsonResponse for ArduinoJson 6.x (#539) 2019-09-24 21:24:18 +03:00
AsyncWebSocket.cpp Add function so that the total number of web-socket clients can be limited (#591) 2019-09-24 22:42:40 +03:00
AsyncWebSocket.h Add function so that the total number of web-socket clients can be limited (#591) 2019-09-24 22:42:40 +03:00
AsyncWebSynchronization.h Add thread locking to improve stability. (#585) 2019-09-12 19:56:13 +03:00
ESPAsyncWebServer.h Allow override rewrite match (#391) 2019-06-22 20:27:57 +02:00
SPIFFSEditor.cpp Change JSON MIME type to application/json (#311) 2018-07-24 20:13:14 +02:00
SPIFFSEditor.h Disabled request body parsing if the handler does nothing. (#266) 2017-11-06 15:48:47 +02:00
StringArray.h Template container instead of direct pointer manipulation. (#95) 2016-11-27 17:42:09 +02:00
WebAuthentication.cpp Initial ESP32 compatibility 2017-09-07 22:01:58 +03:00
WebAuthentication.h Add Digest Web Authentication and make it default 2016-06-29 16:20:03 +03:00
WebHandlerImpl.h Add handlers by URL templates (#380) 2019-06-22 18:28:24 +02:00
WebHandlers.cpp Initial ESP32 compatibility 2017-09-07 22:01:58 +03:00
WebRequest.cpp Fix bug in const String& AsyncWebServerRequest::arg(const __FlashStringHelper * data) const (#334) 2018-07-24 20:21:33 +02:00
WebResponseImpl.h Allow to override default template placeholder value with #define during compilation. (#366) 2018-07-24 20:26:46 +02:00
WebResponses.cpp Change JSON MIME type to application/json (#311) 2018-07-24 20:13:14 +02:00
WebServer.cpp Allow override rewrite match (#391) 2019-06-22 20:27:57 +02:00
edit.htm Initial ESP32 compatibility 2017-09-07 22:01:58 +03:00