highgroove/grocer — pull request #10 by kyledrake (2012-06-18 21:45:16+00:00)
Title: Add keepalive to socket

It has been suggested by a few sources that KEEPALIVE is useful for APNS. There is no "official" documentation here, but I see no harm in it anyways. Tests are passing.

http://adam.therobots.org/talks/push.html
http://stackoverflow.com/questions/6857294/apple-feedback-service-apns-is-slow
https://devforums.apple.com/thread/114446