Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

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

Closed
joefiorini opened this issue Sep 17, 2014 · 1 comment
Closed

Comments

@joefiorini
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants