nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

Connection to APN service dying with multiple notifications to send #77

Closed joefiorini closed 3 years ago

joefiorini commented 10 years ago

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.

joefiorini commented 10 years ago

Also wondering if this is related to #76, difference here being that I actually get an exception.