-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP resets when a client is connection using BearSSL in STATION-mode #5701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you set the CPU speed to 160MHz? It's in the Tools menu IIRC, and it's not listed in your form above. 80MHz is marginal for enabling any form of SSL communications with the very slow core and flash interface we've got on the 8266. |
I did list it in the form. It's she seventh entry under "Setting in IDE". :) |
Ah, I saw "80|160" and didn't realize you meant both and hadn't just left the field chosen. |
I was able to repro this. Looks like something in the change from the fake stack to stack thunks is making the server occasionally time out and get a WDT. Needs investigation. |
Fixes esp8266#5701 WDTs and other issues with BearSSL::WiFiServerSecure The BSSL server was creating the client it returns on a connection in a way that caused the counter for the stack_thunk to get out of sync and cause it to be freed improperly by having the destructor be called on more time than the constructor. Looks like RVO. Rewrite the ::available() function in order to avoid this issue with help from @devyte.
Fixes #5701 WDTs and other issues with BearSSL::WiFiServerSecure The BSSL server was creating the client it returns on a connection in a way that caused the counter for the stack_thunk to get out of sync and cause it to be freed improperly by having the destructor be called one more time than the constructor. Looks like RVO. Rewrite the ::available() function in order to avoid this issue with help from @devyte.
Thanks a lot! Can confirm that this commit solves the issue. |
Basic Infos
Platform
Settings in IDE
I have the exact same problem with the exact same arduino sketch that was posted as an issue here before.
I upload the provided sketch to my ESP8266, connect with Chrome and after 3 times of "Incomming connection" and "Connection closed" it freezes for a few seconds after "Incomming connection" and then resets.
I used different clock/flash speeds and Iwip versions and Core versions (see above) but it ends alyways the same way...
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: