djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 376 forks source link

Add 0.1s sleep to read error response loop to avoid crazy looping #76

Closed jimhorng closed 10 years ago

jimhorng commented 10 years ago

Add 0.1s sleep to read error response loop to avoid crazy looping cause by keep receiving unmeaningful data from apns. e.g. using certificate from invalid provisioning profile will make apns send 0 length data to read socket.