I looked through a similar pull request here:
https://github.com/djacobs/PyAPNs/pull/21

I suppose ageron is okay with the fact that we are using non-blocking socket here..