oxan / esphome-stream-server

Stream server (serial-to-wifi bridge) for ESPHome
Other
190 stars 76 forks source link

Program loop after Wi-Fi connection lost #50

Open matteoda opened 4 months ago

matteoda commented 4 months ago

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!

dongbh commented 4 months ago

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