mwaskom / visigoth

Psychophysics experiment control
https://www.cns.nyu.edu/~mwaskom/software/visigoth
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Remote client occaionally gets disconnected #15

Open mwaskom opened 6 years ago

mwaskom commented 6 years ago
Exception in thread Thread-3218:
Traceback (most recent call last):
  File "/Users/kianilab/Engine/anaconda/envs/psychopy/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/Users/kianilab/Engine/anaconda/envs/psychopy/lib/python2.7/site-packages/visigoth/clientserver.py", line 92, in run
    self.socket.recv(self.HEADER_SIZE))
error: [Errno 54] Connection reset by peer
mwaskom commented 5 years ago

The server is raising here: https://github.com/mwaskom/visigoth/blob/master/visigoth/clientserver.py#L190

The relevant code is

                # Check if we got something surprising
                elif kind != self.SERVER_REQUEST:
                    raise RuntimeError("Unexpected request from the client.")

So we are getting something surprising! But what is it?