Commit Graph

843 Commits

Author SHA1 Message Date
Mathieu Carbou
18b3dd9c03 Display heap 2024-12-19 10:05:48 +01:00
Mathieu Carbou
7f0154c267 Merge pull request #179 from mathieucarbou/ws_onconnect
move AsyncWebSocket's WS_EVT_CONNECT callback out of AsyncWebSocketClient's constructor
2024-12-19 09:48:35 +01:00
Mathieu Carbou
0554cee7a9 Added example to demo that fix #177 fixes issue #176 2024-12-19 09:40:30 +01:00
Emil Muratov
2a26a97e3a move AsyncWebSocket's WS_EVT_CONNECT callback out of AsyncWebSocketClient's constructor
- this is wrong place to call user code from an object constructor
 - it is wrong to call AsyncWebSocket's method from other's objects constructor
 - the callback is executed when new object is not yet linked to server's clients list

Closes #176
2024-12-19 13:12:59 +09:00
Mathieu Carbou
c2147e9b8e Switch log ordering 2024-12-17 17:46:23 +01:00
Mathieu Carbou
5a8b643ca0 v3.4.3 2024-12-17 14:18:57 +01:00
Mathieu Carbou
5ce7df00bc Merge pull request #175 from mathieucarbou/feat-172
Close connection when a SSL/TLS handshake or badly formatted request header is detected
2024-12-17 14:17:48 +01:00
Mathieu Carbou
826ea07e08 Close connection when a SSL/TLS handshake or badly formatted request header is detected 2024-12-17 14:10:14 +01:00
Mathieu Carbou
7573796b26 pioarduino 53.03.10 2024-12-16 23:54:38 +01:00
Mathieu Carbou
ae3bf04ef8 v3.4.2 2024-12-16 21:40:32 +01:00
Mathieu Carbou
753309bca7 mathieucarbou/AsyncTCP @ 3.3.1 2024-12-16 21:39:51 +01:00
Mathieu Carbou
9ebf21af95 v3.4.1 2024-12-15 18:34:20 +01:00
Mathieu Carbou
eef1bab62c Merge pull request #171 from mathieucarbou/buffcredit
in-flight buffer credits
2024-12-15 18:33:25 +01:00
Mathieu Carbou
0dce607ef3 mathieucarbou/AsyncTCP @ 3.3.0 2024-12-15 18:24:42 +01:00
Mathieu Carbou
3b9650dee9 Merge branch 'main' into buffcredit 2024-12-15 17:47:26 +01:00
Mathieu Carbou
1756680088 pointing to https://github.com/mathieucarbou/AsyncTCP#coalescedq 2024-12-15 17:34:54 +01:00
Mathieu Carbou
c1e3bf0665 clang reformat 2024-12-15 17:34:54 +01:00
Mathieu Carbou
92cdaa16b4 update issue 2024-12-15 17:34:53 +01:00
Mathieu Carbou
b5fe1b1c9b update issue 2024-12-15 16:24:03 +01:00
vortigont
a00cf38d6a Merge branch 'main' into buffcredit 2024-12-15 14:57:24 +09:00
Emil Muratov
3d3456e9e8 implement in-flight buffer credits and event moderation for large/chunked responses
Referer to https://github.com/mathieucarbou/ESPAsyncWebServer/discussions/165
Relates to #169

in-flight buffer credits are intended to moderate buffer fill callbacks in AsyncAbstractResponse
it could prevent bad designed slow user-callbacks to flood the queue in chunked responces.

for response data we need to control the queue and in-flight fragmentation. Sending small chunks could give low latency,
but flood asynctcp's queue and fragment socket buffer space for large responses.
Let's ignore polled acks and acks in case when we have more in-flight data then the available socket buff space.
That way we could balance on having half the buffer in-flight while another half is filling up, while minimizing events in asynctcp q
2024-12-15 14:27:42 +09:00
Mathieu Carbou
61eed0edb8 Merge pull request #170 from mathieucarbou/issue-169
Fix #169: Watchdog in AsyncTCP when sending very long chunked response
2024-12-11 20:08:57 +01:00
Mathieu Carbou
b4f170be3d Fix #169: Watchdog in AsyncTCP when sending very long chunked response
Discussion ref: https://github.com/mathieucarbou/ESPAsyncWebServer/discussions/165
2024-12-11 20:03:32 +01:00
Mathieu Carbou
aed6b32bac Updated recommended flags 2024-12-11 11:27:14 +01:00
Mathieu Carbou
359cc6871c update slow example 2024-12-10 21:21:12 +01:00
Mathieu Carbou
25742e1958 updated slow sample 2024-12-10 21:13:45 +01:00
Mathieu Carbou
3866d0b6a0 snprintf => concat 2024-12-10 20:41:31 +01:00
Mathieu Carbou
ce2a7a593f v3.4.0 2024-12-10 15:02:47 +01:00
Mathieu Carbou
101617d17c Merge pull request #168 from mathieucarbou/issue-162
Fix 162: closing websocket from ESP32 with Safari crashes the ESP32.
2024-12-10 14:34:23 +01:00
Mathieu Carbou
ee9d406190 Fix 162: closing websocket from ESP32 with Safari crashes the ESP32.
This happens when Safari sends a WS frame with masked bit set and length 2.
2024-12-10 13:38:17 +01:00
Mathieu Carbou
5b5efb96f5 Merge pull request #167 from vortigont/sse_fix
SSE: fix '\n' for String's message container
2024-12-10 09:08:11 +01:00
Emil Muratov
050448165b SSE: fix '\n' for String's message container
Closes #166
2024-12-10 16:46:35 +09:00
Mathieu Carbou
8a7d2d1944 add slow chunk example 2024-12-09 09:18:27 +01:00
Mathieu Carbou
964f899405 Merge pull request #154 from vortigont/sse_shareddata
reworked SSEs
2024-12-03 09:51:05 +01:00
vortigont
c8b3b283da Merge branch 'main' into sse_shareddata 2024-12-02 12:25:29 +09:00
Emil Muratov
b09ad98fdd rework SSE for String's instead of std::string 2024-12-02 10:37:35 +09:00
Mathieu Carbou
d9041fc9c4 Add example to prevent WS connection if too many clients 2024-11-30 16:07:11 +01:00
Mathieu Carbou
bccee27d2b v3.3.23 2024-11-25 13:26:03 +01:00
Mathieu Carbou
f0eb0acb2f Added WS_PING event 2024-11-21 00:38:56 +01:00
Mathieu Carbou
0eba19d8bf Updated example 2024-11-21 00:30:41 +01:00
Mathieu Carbou
0cc6dd2a0c code cleanup 2024-11-20 23:43:45 +01:00
Mathieu Carbou
29198a2436 Fix sample 2024-11-20 23:18:51 +01:00
Mathieu Carbou
d7c23e8417 Fix CI 2024-11-20 20:51:57 +01:00
Mathieu Carbou
d60573bd4d updated example 2024-11-20 20:41:16 +01:00
Mathieu Carbou
ac2fb65cb5 Add sample 2024-11-20 20:25:44 +01:00
Mathieu Carbou
33611e8c0a Fix samples 2024-11-19 00:18:05 +01:00
Mathieu Carbou
4a37169a04 Arduino Core 3.1.0 RC3 / ESP-IDF 5.3 2024-11-15 20:38:39 +01:00
Mathieu Carbou
071785ae50 add josn example 2024-11-15 20:06:33 +01:00
Mathieu Carbou
cee7292529 Merge pull request #159 from Jetinho/patch-2
update doc according to ArduinoJson upgrade
2024-11-15 15:56:11 +01:00
Julien Jet
60f9b47bee update doc according to ArduinoJson upgrade
From information found on the following [issue](https://github.com/me-no-dev/ESPAsyncWebServer/edit/master/README.md) and [ArduinoJson upgrade note](https://arduinojson.org/v6/doc/upgrade/)
2024-11-15 15:49:16 +01:00