Skip to content

Conversation

asier70
Copy link
Contributor

@asier70 asier70 commented Feb 11, 2020

Real DNS resolving timeout used by lwip library is 14[s] (7[s] for DNS1 + 7[s] for DNS2). Function WiFiGenericClass::hostByName() has timeout set to lower value (only 4[s]), so callback function may be called after this low timeout and it may overlappe stack memory used now by other function.
Fixes #3722

Real DNS resolving timeout used by lwip library is 14[s] (7[s] for DNS1 + 7[s] for DNS2). Function WiFiGenericClass::hostByName() has timeout set to lower value (only 4[s]), so callback function may be called after this low timeout and it may overlappe stack memory used now by other function.
Fixes espressif#3722
@liebman
Copy link
Contributor

liebman commented May 19, 2020

This works for me and removes a multiple crashes a day issue I've had.

@thbl
Copy link

thbl commented Aug 3, 2020

also fixed crashes for me 👯 @me-no-dev can this be pushed to master ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http.GET() randomly exits with error -1 (connection refused) -> issue with function WiFiGenericClass::hostByName() [proposal of changes in library]
4 participants