WiFi on loopback: no update for connected()

u063096
Posts: 34
Joined: Wed Feb 13, 2019 3:27 pm

WiFi on loopback: no update for connected()

Postby u063096 » Sat Oct 24, 2020 9:14 am

I got a simple WiFiServer/WiFiClient pair running in two tasks on an ESP32 DevKitC V4. For testing reasons I am using the loopback interface, the client will connect to 127.0.0.1.

As long as the client stays connected, everything runs fine. But as soon as the client disconnects (by calling stop()), the server does not notice. A call to connected() will always signal an existing connection regardless.

But if I do a second connect from a remote client, out of a sudden the server also notices the loopback client has disconnected.

What am I missing here to get the connected() report the right information on pure loopback also?

u063096
Posts: 34
Joined: Wed Feb 13, 2019 3:27 pm

Re: WiFi on loopback: no update for connected()

Postby u063096 » Tue Oct 27, 2020 4:38 pm

Any idea, anyone? Or does no one use the loopback IF at all?

Who is online

Users browsing this forum: Google [Bot] and 42 guests