ESP32 WDT is killing my nerves!!

FIRST: I can not put my code here because it's longer than 9000 lines. So I put it here in a simple txt file:
http://peerless-records.de/public_share/code.txt

I keep on getting WDT when I run the function "sendHost" which basically just sends GET requests to an ESP8266.

I marked the point where I get the WDT with "========WATCHDOG ERROR======="

This is the log by the way:

E (12693) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (12693) task_wdt: - async_tcp (CPU 0/1)
E (12693) task_wdt: Tasks currently running:
E (12693) task_wdt: CPU 0: IDLE0
E (12693) task_wdt: CPU 1: loopTask
E (12693) task_wdt: Aborting.

What I've tried already:<<

  • Putting "yield();" everywhere on my script. literally EVERYWHERE. in the setup beginning, in the
    end of
    the setup. after and before each delay. I played around with positioning yields everywhere for
    hours.
    I think yield(); is not doing a shit actually!

  • I have downloaded ESP-IDF Tools. But I can't install it. The installation fails at "setting up
    exclusions
    for Windows Defender. I tried to run the command it shows up manually with cmd. I get like 100
    lines
    of an error message, that even Google can't find a solution for. so screw this shit.

  • I put all of the stuff in the setup function into another function called "test" so in my setup
    function was now only Serial.begin(115200); and a delay(1000);
    I then created a variable "calledonce = 0" and in my loop function I asked if this is 0 then call
    the "test" function ONCE. so basically just like an alternative setup function that runs only once
    at the beginning. And? NOTHING!!! the problem persists.. so it's not about the setup function
    itself..

WHAT CAN I DO?? >:( :sob: :sob: :sob: :cry:

How can I disable this stupid watchdog timer? I feel like this is the worst function Espressif ever made!

I believe it's triggering the watchdog because my setup function is taking longer than the 2,5 seconds.
But this is not possible to prevent. I need to run all that stuff in setup if you check my script you know why. I need a server and client simultaneously. Everything was working until this WDTs..

HEEEEEEEEEELP!!!!!