WLED/wled00
Frank e2886e83b3
workaround for #3382
On esp32, its possible that two threads (async_tcp, looptask) are sending out JSON via AsyncWebServer in parallel 
- serveJson() responds to json/si, and 
- updateInterfaces() is sending JSON state info using sendDataWs(). 

This workaround uses the INTERFACE_UPDATE_COOLDOWN timer  to delay the second webSocket send command so it does not (usually) interfere with the first.

It looks like the root cause that parts of AsyncWebServer are not thread-safe, and the payloads from a second ->send() call may corrupt the previous one if still being sent out.  The problem should be solved properly in AsyncWebServer, however until that happens, this workaround help to reduce the frequency of errors.
2023-10-05 15:21:16 +02:00
..
data Fix for #3405 2023-10-01 13:04:05 +02:00
src Fix errors in DDP implementation (#3193) 2023-05-26 14:58:40 +02:00
alexa.cpp Changes for allowing Alexa to change light color to White when auto-calculating from RGB (#3211) 2023-05-31 20:12:17 +02:00
bus_manager.cpp Merge branch 'main' into fx-blending 2023-08-25 18:34:56 +02:00
bus_manager.h Always repaint NPB buffer on brightness change 2023-07-19 17:25:25 +02:00
bus_wrapper.h Restore brightness immediately after show() 2023-07-19 16:22:34 +02:00
button.cpp potentiometer: check that pin supports ananlogread 2023-09-07 18:55:13 +02:00
cfg.cpp Add compile time MQTT override (#3354) 2023-09-02 01:05:45 +02:00
colors.cpp Pin dropdowns POC. 2023-06-10 20:43:27 +02:00
const.h Add Internal Temperature usermod (#3246) 2023-09-01 19:43:21 +02:00
dmx.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
e131.cpp Bugfix in DDP handling. 2023-06-04 17:55:29 +02:00
fcn_declare.h Add WiFi network scan RPC command to Improv Serial (#3271) 2023-06-27 01:51:44 +02:00
file.cpp use size_t as file index type (might prevent corruption) 2023-05-09 17:44:26 +02:00
FX_2Dfcn.cpp FX update 2023-09-24 16:48:59 +02:00
FX_fcn.cpp Fix for #3403 2023-10-01 13:26:31 +02:00
FX.cpp Fix for #3405 2023-10-01 13:04:05 +02:00
FX.h FX update 2023-09-24 16:48:59 +02:00
html_cpal.h npm run build 2023-09-10 16:59:31 +02:00
html_other.h npm run build 2023-09-23 21:22:14 +02:00
html_pixart.h npm run build 2023-09-10 16:59:31 +02:00
html_pxmagic.h Adding Pixel Magic Tool to WLED (#3249) 2023-06-22 11:26:24 +02:00
html_settings.h npm run build 2023-09-23 21:22:14 +02:00
html_simple.h npm run build 2023-09-10 16:59:31 +02:00
html_ui.h Fix for #3405 2023-10-01 13:04:05 +02:00
hue.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
improv.cpp version bump 0.14.0-b6 2023-09-23 21:08:11 +02:00
ir_codes.h whitespace cleanup 2023-01-06 09:24:29 +01:00
ir.cpp Support for ESP-NOW Wireless Remote Control (#3237) 2023-06-22 10:06:19 +02:00
json.cpp workaround for #3382 2023-10-05 15:21:16 +02:00
led.cpp fixing a few implicit promotions to double 2023-09-09 20:48:17 +02:00
lx_parser.cpp fixing a few implicit promotions to double 2023-09-09 20:48:17 +02:00
mqtt.cpp Update comments. 2023-05-30 16:09:51 +02:00
my_config_sample.h Use constant for mDNS name to allow setting from my_config.h (#3145) 2023-05-31 17:35:43 +02:00
net_debug.cpp Bugfix. 2023-02-08 10:18:41 +01:00
net_debug.h Compile fix for net_debug 2023-02-04 23:59:28 +01:00
network.cpp Feature implementation 2023-05-28 22:50:19 +02:00
NodeStruct.h Add ability to toggle devices from nodes view. 2023-07-13 22:21:15 +02:00
ntp.cpp optimization: only use "float" math functions 2023-10-01 19:04:30 +02:00
overlay.cpp Float vs. double. 2023-03-19 11:24:59 +01:00
palettes.h Update palettes.h 2023-05-02 21:52:39 +01:00
pin_manager.cpp two more "shadowed locals" 2023-04-14 13:09:25 +02:00
pin_manager.h whitespace cleanup 2023-01-06 09:24:29 +01:00
playlist.cpp Playlist saving bugfix. 2023-08-16 22:11:16 +02:00
presets.cpp Removed current cycle assignment that clears current value (#3262) 2023-06-30 15:03:32 +02:00
remote.cpp esp-now remote: fix crash with AP = Always 2023-08-01 11:53:32 +02:00
set.cpp fix small typo in MQTT override code 2023-09-05 17:15:12 +02:00
udp.cpp Add ability to toggle devices from nodes view. 2023-07-13 22:21:15 +02:00
um_manager.cpp Usermod enhancements 2023-02-05 12:23:05 +01:00
usermod_v2_empty.h whitespace cleanup 2023-01-06 09:24:29 +01:00
usermod.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
usermods_list.cpp Add Internal Temperature usermod (#3246) 2023-09-01 19:43:21 +02:00
util.cpp fixing a few implicit promotions to double 2023-09-09 20:48:17 +02:00
wled00.ino Fix DMX compilation 2020-04-10 12:30:08 +02:00
wled_eeprom.cpp Remove Blynk support (#3102) 2023-02-21 17:07:32 +01:00
wled_ethernet.h Ethernet modifications. 2021-08-27 19:48:55 +02:00
wled_math.cpp fixing a few implicit promotions to double 2023-09-09 20:48:17 +02:00
wled_serial.cpp workaround for issue #3128 2023-03-16 13:08:34 +01:00
wled_server.cpp Missing WS connection fallback for liveview (#3267) 2023-06-27 01:51:24 +02:00
wled.cpp Bugfix. 2023-08-28 17:58:30 +02:00
wled.h Build bump. 2023-10-01 13:38:10 +02:00
ws.cpp Correct scaling for peek. 2023-07-06 22:48:13 +02:00
xml.cpp fixing a few implicit promotions to double 2023-09-09 20:48:17 +02:00