APNs socket hang up error.

Hi.

I use Google Translate because I can't English.

I'm sorry if I do not understand the sentences I wrote...



Push notification service is implemented by Node.js.

From 2018/02/09, socket hang up occasionally happens when connecting to APNs. It is still occasionally still.



The connection method to APNs is TLS connection to gateway.push.apple.com:2195 and push distribution is done


This is the log when the event occurred.


[2018-02-10 17:35:51.094] [ERROR] [10913] - MSG:498619[2] | Error occured send APNs: { [Error: socket hang up]
stack: 'Error: socket hang up\n    at TLSSocket.onHangUp (_tls_wrap.js:942:21)\n    at TLSSocket.g (events.js:199:16)\n    at TLSSocket.EventEmitter.emit (events.js:129:20)\n    at _stream_readable.js:898:16\n    at process._tickDomainCallback (node.js:372:11)',
code: 'ECONNRESET' }
Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:942:21)
at TLSSocket.g (events.js:199:16)
at TLSSocket.EventEmitter.emit (events.js:129:20)
at _stream_readable.js:898:16
at process._tickDomainCallback (node.js:372:11)
[2018-02-10 17:45:52.211] [ERROR] [10913] - MSG:498621[2] | Error occurd send APNs: { [Error: socket hang up]
stack: 'Error: socket hang up\n    at TLSSocket.onHangUp (_tls_wrap.js:942:21)\n    at TLSSocket.g (events.js:199:16)\n    at TLSSocket.EventEmitter.emit (events.js:129:20)\n    at _stream_readable.js:898:16\n    at process._tickDomainCallback (node.js:372:11)',
code: 'ECONNRESET' }
Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:942:21)
at TLSSocket.g (events.js:199:16)
at TLSSocket.EventEmitter.emit (events.js:129:20)
at _stream_readable.js:898:16
at process._tickDomainCallback (node.js:372:11)





I have not changed the web application recently.



  • Please tell me what is the cause of this event occurs (socket hang up) and if there is a way to avoid something if this event occurs.
  • Have you updated or changed APNs near February 9, 2018?

I also had a similar problem from around February 10.

Even now it happens occasionally.


The cause is unknown, but we will resend it if the same problem occurs.

From 0 o'clock on February 26th of UTC time, this event no longer occurred.

Has any response been made to APNs?

APNs socket hang up error.
 
 
Q