pyhap
pyhap copied to clipboard
Bad File Descriptor
I get an exception in the log when I access homekit via wifi extender (wireless repeater). Accessories go offline and return online when on main AP.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/accessory_driver.py", line 431, in send_events
pushed = self.http_server.push_event(bytedata, client_addr)
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/hap_server.py", line 857, in push_event
self._handle_sock_timeout(client_addr, e)
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/hap_server.py", line 811, in _handle_sock_timeout
raise exception
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/hap_server.py", line 854, in push_event
client_socket.sendall(data)
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/hap_server.py", line 653, in _wrapper
return func(self, *args, **kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/pyhap/hap_server.py", line 742, in sendall
self.socket.sendall(result)
OSError: [Errno 9] Bad file descriptor