tractiming / trac

timing and racing system
MIT License
1 stars 0 forks source link

server-side tcp script hangs when connection lost #1

Closed elliothevel closed 10 years ago

elliothevel commented 10 years ago

Steps to reproduce:

  1. Connect pic to server over tcp.
  2. Turn off power to pic.

Expect to see: Python server acknowledging dropped connection by logging to stdout.

What happens: Server hangs and thinks there is still an established connection.

elliothevel commented 10 years ago

Since the microcontroller sends heartbeat messages, maybe we can run a timer that would notify us if there is no information coming in from one connection for a long time.