Comments (5)
it's not purely AsyncTCP that does this. Your ESP is too busy to have spare cycles to run the idle task for 5 seconds. I could introduce maybe artificial delay in the task somehow....
from asynctcp.
hmm .. but the esp are running fine if I run only 2 or 3 of them... when using all of them (same binary code... ) the problems start. the esp is not doing more stuff when running alone or with a lot of other esp... (1 udp broadcast received in sync/loop, 1 tcp sent to the broadcaster with async).
which could mean that some network task are taking too long, depending on the external http server. Thus, in this case ( in case of it's linked), a timeout could be a solution to kill the conn...
from asynctcp.
A few questions/tips to look into:
regarding webserver:
The java webserver isn’t esp32, just random webserver?
Are tcp sessions nicely closed after each request? Or do you keep it (until session cache timeout?)
Whats does netstat -anp say on webserver.
Is it somehow predictable?
doing a 16x simultanous connect to one service may/will hit the tcp backlog queue/mechanism.
Having a tcp backlog setting lower then the simultanous requests will keep the other clients waiting, by not sending a response.
Depending on TCP stack settings the SYN-retry may be 3 seconds or so.
If the/your code operates in blocking mode at this point it is easy to get the WDT triggered.
I'm curious to have a look at:
tcpdump/capture of the traffic, and a pointer to the exact time to look at.
netstat -anp during the issue, and when it just runs fine.
Can you share the actual code (server + ESP32)? so we can have a more close look?
Wdt mask’s the issue, i would suggest to disable it for debugging purposes and see what your issue really is.
In case not into the tcp backlog mechanism, a linkk which i thing desribes it quite in depth.
http://veithen.io/2014/01/01/how-tcp-backlog-works-in-linux.html
it is not completely clear to me from where watchDogAsync is called, and if you use custom watchdog or asynctcp's buildin.
Regards,
Arjan
from asynctcp.
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
from asynctcp.
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.
from asynctcp.
Related Issues (20)
- Examples from ESPAsyncTCP and update to Readme HOT 1
- Crash on multiple async reqs HOT 50
- [FR] Project Examples for PlatformIO Registry HOT 1
- espcam stream with TCP and receive UDP packets at same time HOT 1
- [FR] Project Examples for PlatformIO Registry
- Examples for the AsyncTCP HOT 1
- [ 32449][E][AsyncTCP.cpp:1313] begin(): failed to start task
- How to use the reply from onData
- AsyncTCP Conversion issue
- How to pause receiving uploads from client HOT 1
- any chance this will be published under a permissive license (e.g. Apache, MIT, MPL) HOT 6
- .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.cpp:85:8: : 'xQueueHandle' does not name a type; HOT 3
- [FR] Project Examples for PlatformIO Registry
- Install HOT 1
- ESP32 - WLED Unhandled Exception on MQTT Connection HOT 1
- fatal error: sdkconfig.h: No such file or directory HOT 2
- Problem when connecting via WIFIAP HOT 2
- AsyncUDP is conflicting with AsyncTCP
- How am I supposed to use AsyncTCP? Examples please!
- [FR] Project Examples for PlatformIO Registry
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 asynctcp.