In APNs4r::Sender#push, if @ssl.write fails there are two bugs in the rescue block:
- The ssl connection is not recreated, since @ssl ||= connect is used rather than @ssl = connect.
- If the write fails again (e.g. because ssl has disconnected, but isn't nil), retry will be call an infinite number of times.
In APNs4r::Sender#push, if @ssl.write fails there are two bugs in the rescue block: