发送通知后APNS连接关闭

时间:2012-07-20 11:24:38

标签: apple-push-notifications ioexception

我正在开发基于.Net的APNS提供商,我正在使用SSLStream与APNS进行通信。我正面临着一个让我烦恼的小问题。

有时,当我发送通知时,流编写器刷新通知字节后,流阅读器会毫无理由地引发以下异常。

IOException System.IO.IOException: Unable to read data from the transport 
connection: An existing connection was forcibly closed by the remote host. 
---> System.Net.Sockets.SocketException: An existing connection was forcibly 
closed by the remote host

根据Apple的文档,如果出现错误,应在关闭连接之前收到错误消息,但我没有收到任何消息。

有人对此案有任何疑问吗?为什么连接在“推”后立即关闭?这是一个众所周知的问题吗?

0 个答案:

没有答案
相关问题