I realized this problem today:
http://redth.codes/the-problem-with-apples-push-notification-ser/
Is there a technical explanation as to why it happens this way, or is it just that Apple is not developer friendly. They could have queued the notifications at their end, and have ignored invalid tokens on their server, allowing the batch of notifications to be successfully sent using the same connection. I could query for invalid tokens later, using the feedback service. An invalid token resulting in a closed connection, which in turn results in all the notifications after that not being sent, is somewhat a foolish implementation to me from a web developers perspective. Or may be since I am not into socket programming, therefore I am overlooking some obvious details. Can someone please help me understand this. If that's a limitation of sockets, then may be as suggested in the blog post, Apple should move over to HTTP.