我正在使用Apns-PHP
库来发送 Apple 推送通知。它运行正常,证书很好,最近发出了大量的推送。
但有一段时间,它无法连接到 Apple 服务。这很奇怪,因为我们这边没有任何改变。事实上,很长一段时间没有人碰过服务器。
您知道 Apple 方面是否有任何可能阻止连接的变化?
这是来自我的服务器的日志示例:
Tue, 04 Feb 2014 03:54:42 +0000 NmPns[7799]: INFO: Starting Job (job ID: 581 ; env: 2)
Tue, 04 Feb 2014 03:54:42 +0000 NmPns[7799]: INFO: Preparing job - building queue.
Tue, 04 Feb 2014 04:10:38 +0000 NmPns[7799]: INFO: Built queue (device count: 421335)
Tue, 04 Feb 2014 04:10:39 +0000 NmPns[7799]: INFO: Connecting to Apple server...
Tue, 04 Feb 2014 04:10:39 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:40 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195': (0)
Tue, 04 Feb 2014 04:10:40 +0000 ApnsPHP[7799]: INFO: Retry to connect (1/3)...
Tue, 04 Feb 2014 04:10:41 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:41 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195': (0)
Tue, 04 Feb 2014 04:10:41 +0000 ApnsPHP[7799]: INFO: Retry to connect (2/3)...
Tue, 04 Feb 2014 04:10:42 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:43 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195': (0)
Tue, 04 Feb 2014 04:10:43 +0000 ApnsPHP[7799]: INFO: Retry to connect (3/3)...
Tue, 04 Feb 2014 04:10:44 +0000 ApnsPHP[7799]: INFO: Trying ssl://gateway.push.apple.com:2195...
Tue, 04 Feb 2014 04:10:44 +0000 ApnsPHP[7799]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195': (0)
Tue, 04 Feb 2014 04:10:44 +0000 NmPns[7799]: ERROR: Aborting job! Cannot connect to server. Message: Unable to connect to 'ssl://gateway.push.apple.com:2195': (0)