Yeah I'm pretty certain we aren't draining, but I can add a logger to 
the drain event.

degzhaus wrote:
>
> In src/apnshit.coffee:
>
> > @@ -167,6 +167,8 @@ class Apnshit extends EventEmitter
> > @sending = false
> > @sent_index = index
> > )
> > + if !written?
> > + @debug("send#write_failed")
> > else
>
> I don't see how this could be causing any of the behavior we've been
> seeing, but may be interesting ...
> http://nodejs.org/api/net.html#net_socket_write_data_encoding_callback
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/winton/apnshit/pull/2/files#r3006351>.