PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

Fix flush indefinite wait. #45

Open bleckers opened 4 years ago

bleckers commented 4 years ago

If there is network connectivity and a socket is connected, but there is currently no route to the host or the host isn't responding, a client flush call can wait indefinitely (until the server responds again).

Typically this might trigger a watchdog if the server doesn't respond promptly, so we would like to stop the connection instead.