rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Fix client disconnect #50

Closed doronblass closed 8 years ago

doronblass commented 8 years ago

This patch fixed my disconnection problem. I work with slow wireless network, and experienced many disconnections; this caused 2 things:

  1. If the disconnection was during the time the server tries to write the info back - the server would receive a SIGPIPE and crash.
  2. The client was disconnected if it took too long for the request to be sent to the server.

These patched solves them both.