You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] server not reachable after calling end() and begin(). #21
AsyncWebServer *server = new AsyncWebServer(80);
// Start the web server
server->begin();
delay(10000);
server->end();
delete server;
server = nullptr;
delay(10000);
server = new AsyncWebServer(80);
server->begin();
The server is not reachable on port 80 after the "restart".
But if I do this, I can reach the server on port 81:
AsyncWebServer *server = new AsyncWebServer(80);
// Start the web server
server->begin();
delay(10000);
server->end();
delete server;
server = nullptr;
delay(10000);
server = new AsyncWebServer(81);
server->begin();
Activity
mkalkbrenner commentedon Jan 27, 2025
Some more tests.
Even that doesn't work:
The server is not reachable on port 80 after the "restart".
But if I do this, I can reach the server on port 81:
mathieucarbou commentedon Jan 27, 2025
I can reproduce indeed.Ahah! I didn't have my WiFi Client activated :PSo I cannot reproduce.
you can add at the end of the SimpleServer:
curl -v http://192.168.4.1curl -v http://192.168.4.1I will move to a discussion until it can be proven there is an issue, or until you found what is wrong on your setup.
Maybe post a complete ino file to reproduce.
Also, please test with the SimpleServer example ;-)