Redth / PushSharp

A server-side library for sending Push Notifications to iOS (iPhone/iPad APNS), Android (C2DM and GCM - Google Cloud Message), Windows Phone, Windows 8, Amazon, Blackberry, and (soon) FirefoxOS devices!
Other
4.39k stars 1.52k forks source link

Unhandled IOException related to Apple FeedbackService #732

Open lazytom opened 8 years ago

lazytom commented 8 years ago

We recently upgraded to PushSharp 4.x (using the 4.0.10 Nuget packages) and have experienced this issue twice so far. I don't have any specific steps to reproduce. We use Push Sharp in a WindowsService and when this happens, it kills the service.

Application: XXXService.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.IOException Stack: at System.Net.Security._SslStream.ProcessRead(Byte[], Int32, Int32, System.Net.AsyncProtocolRequest) at System.Net.Security.SslStream.Read(Byte[], Int32, Int32) at PushSharp.Apple.FeedbackService.Check() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.TimerQueueTimer.CallCallback() at System.Threading.TimerQueueTimer.Fire() at System.Threading.TimerQueue.FireNextTimers()

lazytom commented 8 years ago

I guess for now I will just wrap the call to fbs.Check in a try ... catch.