arduino-esp32/libraries/WiFi
Mark D bb0a194bb7 fix WiFiClient.connected() (#3654)
WiFiClient.connected() was hanging thinking there was still a connection when the remote had already closed. The one-liner in this patch addresses recv() returning 0 and errno==128. I couldn't find the corresponding errno for 128 but its caught by the case statement which includes EPIPE, ENOTCONN, ECONNRESET and ECONNABORTED so I assume its one of those. Broken pipe maybe?
```c
[D][WiFiClient.cpp:511] connected(): Disconnected: RES: 0, ERR: 128
```
EDIT: added comment to reflect that recv() can set errno when it returns 0.
2020-01-21 12:36:03 +02:00
..
examples Wait for client.available() to prevent ESP32 crashes (#3154) 2019-10-02 14:45:42 +03:00
src fix WiFiClient.connected() (#3654) 2020-01-21 12:36:03 +02:00
keywords.txt initial import 2016-10-06 07:09:44 -06:00
library.properties initial import 2016-10-06 07:09:44 -06:00