oxan/esphome-stream-server

Program loop after Wi-Fi connection lost

Opened this issue · 1 comments

I've noticed that whenever Wi-Fi is lost unexpectedly the following loop occurs:

May 31 22:13:22 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:22 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:22 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:22 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:22 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:22 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!
May 31 22:13:23 esp32 stream_server [W][stream_server:168]: Failed to read from client 192.168.0.122 with error 128!

It seems the server can not disconnect the old connections when wifi connects again. The same question when replug the rj45.