kernel1983/tornado_apns — pull request #5 by Ethan-Zhang (2014-01-03 03:48:30+00:00)
Title: Fix a bug: set APNsConnection _alive attribute to False when apns connectiong closed

Last weekend I found a bug with my apns provider application. When the apns disconnected, my application retry connecting and timeout. Because the stream_connect_callback method didn't set the APNsConnection attribute _alive to False，the timeout_callback didn't work so correct, that lead to the state of the APNsConnection confusion.