Comments (5)
Please confirm this still exists on the current -test-server-demos
from lws-esp32-factory.
I have not been able to trigger the watchdog with two broswers connected.
However, during startup of esp32 and only one browser connected this procedure seem to be possible to reproduce every time::
- One Edge-browser connected
- Restarted esp32 by issuing a "make monitor" command (that boot into lws-test-server)
- About 10 seconds after esp32 got an IP and the setup of the connection to the browser was ongoing I got a watchdog trigger:
?[35;1m[2018/02/19 17:50:46:6397] NOTICE: ssl_pm_handshakke
?[35;1m[2018/02/19 17:50:46:6422] NOTICE: mbedtls_handshake: ssl ret -0 state 1
?[35;1m[2018/02/19 17:50:46:6532] NOTICE: mbedtls_handshake: ssl ret -0 state 2
?[35;1m[2018/02/19 17:50:46:6620] NOTICE: mbedtls_handshake: ssl ret -0 state 3
?[35;1m[2018/02/19 17:50:46:6703] NOTICE: mbedtls_handshake: ssl ret -0 state 4
Task watchdog got triggered. The followingg tasks did not reset the watchdog in time:
- IDLE (CPU 0)
Tasks currently running:
CPU 0: wifi
CPU 1: IDLE
?[35;1m[2018/02/19 17:50:47:7509] NOTICE: mbedtls_handshake: ssl ret -0 state 5
?[35;1m[2018/02/19 17:50:47:7569] NOTICE: mbedtls_handshake: ssl ret -0 state 6
I guess the startup is is an extra stressful moment for the esp32, so maybe not so strange it is happening here. Not sure if it is possible to add an extra yield-statement or two during the setup-phase. If not I guess this can be left without action as it seems Everything continues to startup the Connection anyway.
from lws-esp32-factory.
Yes... this is something more reasonable than whatever the original thing was. It is calling into mbedtls and sitting there doing the crypto for the best part of a second. The watchdog is right we blocked everything, but it's not because something failed, it's the normal operation and just something cosmetic.
from lws-esp32-factory.
Before I close this issue: I connected two browsers (one Edge and the other Firefox on Windows10) to esp32 running lws-test-demo (yes I know, that issue should not be listed here....) and I noticed this:
With both browsers on the "dumb increment counter" page, when I press "Ctrl-F5" in the Edge browser I can see one watchdog warning (the counting goes quite slow on FireFox as expected).
However, if I reload the page in the Firefox browser, there will NEVER be any watchdog warning. The counting slowdown in the Edge browser is similar as I could see in the FireFox browser in the first case.
So the mbedtls is executing differently depending on type of browser.
from lws-esp32-factory.
Dunno... this watchdog is just there to tell us the core didn't return to the RTOS event loop for some time. For some things we do like mbedtls handshake computation or flash erase, it's true it's possible we just sit there for over a second. It's not an error and it doesn't create problems.
Tls negotiates some parameters on each side, it's not an error if different browsers negotiated different crypto either. So I don't see what to do about that except maybe increase the watchdog timeout.
from lws-esp32-factory.
Related Issues (20)
- lws-esp32-factory/components/bootloader/Makefile.projbuild:37: *** multiple target patterns. Stop. HOT 3
- oto_choose_part will accept partition outside range HOT 2
- INFO: ota update of factory partition fails HOT 8
- lws-esp32-factory is always listed as dirty HOT 4
- Does it link on ESP32 HOT 2
- Connection terminates after approximetly 10 minutes HOT 3
- Minor: Missing "hard" for Git command in Readme HOT 1
- Lets Encrypt stops at first step
- tcp_connect: can only connect from state CLOSED
- Partition table too small for newer esp-idf HOT 4
- how to force enter app after first reboot HOT 7
- Updated alignment with esp-idf/mbedtls needed to build with latest esp-idf HOT 16
- websocket client example
- Error during make flash monitor HOT 2
- mbedtls_handshake: ssl ret -6900 state 8
- arduino-esp32 support ?
- multiple definition of api functions when using openssl api functions HOT 1
- build fail for lws-esp32-factory HOT 12
- Can this be used on esp8266 HOT 1
- Please give me an esp8266 program about LWS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lws-esp32-factory.