Giter Site home page Giter Site logo

Comments (5)

me-no-dev avatar me-no-dev commented on July 17, 2024

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.

jc999 avatar jc999 commented on July 17, 2024

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.

iafilius avatar iafilius commented on July 17, 2024

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 avatar stale commented on July 17, 2024

[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 avatar stale commented on July 17, 2024

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

from asynctcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.