waveform80/pistreaming

BrokenPipeError After Refreshing Web Page

Opened this issue · 0 comments

I'm running with the default configuration (640x480 at 24fps) and if I refresh the web page a couple times, I get this BrokenPipeError and the video feed stops. Issue #13 seemed related, but it sounds like that was taken care of already. Is there anything else that could prevent this? Of course, I'd rather not turn down the resolution... Thanks for your help and thanks for the library!

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3/dist-packages/ws4py/manager.py", line 310, in run
    if not ws.once():
  File "/usr/lib/python3/dist-packages/ws4py/websocket.py", line 305, in once
    if not self.process(b):
  File "/usr/lib/python3/dist-packages/ws4py/websocket.py", line 362, in process
    self.close(s.closing.code, s.closing.reason)
  File "/usr/lib/python3/dist-packages/ws4py/websocket.py", line 176, in close
    self._write(self.stream.close(code=code, reason=reason).single(mask=self.stream.always_mask))
  File "/usr/lib/python3/dist-packages/ws4py/websocket.py", line 243, in _write
    self.sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe