haoyayoi/Net-APNS — pull request #3 by ipaponov (2012-02-02 13:08:10+00:00)
Title: persistent connection

I made a little split of the write function. I put connect and disconnect parts of code to their own subs.
And disconnect is being called not in the end of write function, but when the object is being destroyed.
That means we could sent multiple messages in one connection. It's good to have, because lot's of connections could be treated by apple as ddos.