Resend a notification if error occurs during transmission
Resend a notification if error occurs during transmission

If the socket is "busy", i.e. hasn't drained, when an error occurs then we prepare the last notification to be resent. This should address issue #100. There's no way to stop the timeouts, but this should make the behaviour more consistent.

tempbottle/node-apn,hilllinux/node-apn,node-apn/node-apn,lopper/node-apn,F4-Group/node-apn,maximeloizeau/node-apn,guoyu07/node-apn,madshell/node-apn,guytuboul/node-apn,telerik/node-apn,argon/node-apn