server not reachable after calling end() and begin(). #23
Replies: 4 comments 3 replies
-
Some more tests. 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(); |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
https://github.com/PPUC/ZeDMD/blob/a27fdd53eff87601abfb439af8544d6333a455a5/src/main.cpp#L1297-L1311 I have an application also with both AsyncTCP (ESPAsyncWS) on websocket and AsyncUDP. And I sometimes see some issues reaching the web server and I found that this was because of AsyncUDP. Try running your async_tcp task on core 1:
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. I experimented a bit more. And it seems that websever has issues to be "started" after the ESP32 S3 is already running for more than 30 seconds. Actually it starts, but it takes very long until a client gets a response, about one minute. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The server works fine. But if I stop the sever and start it again later, it isn't reachable anymore.
Beta Was this translation helpful? Give feedback.
All reactions