When I try to send a notification I'm seeing the following error:
Errno::EPIPE (Broken pipe)
I don't get a good stack trace, but through some logging I've managed to find that it's happening in Client#push in the loop that actually calls Connection#write. It does get through a few notifications (devices) before dying, usually somewhere between 20-50 out of 116. Even in the iteration where the exception occurs, Connection#open? still returns true. I don't know Ruby sockets very well, so I'm not sure where to go from here.
When I try to send a notification I'm seeing the following error:
I don't get a good stack trace, but through some logging I've managed to find that it's happening in
Client#push
in the loop that actually callsConnection#write
. It does get through a few notifications (devices) before dying, usually somewhere between 20-50 out of 116. Even in the iteration where the exception occurs,Connection#open?
still returns true. I don't know Ruby sockets very well, so I'm not sure where to go from here.