Files
James Ide ec58b084ef Handle GOAWAY frames from APNs
APNs sends GOAWAY frames when it decides to terminate a connection (see "Terminating an APNs Connection" at https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html). Node then closes the HTTP/2 session and all streams (requests) associated with that session end prematurely, triggering errors like `"stream ended unexpectedly"`.

This commit adds support for handling GOAWAY frames. The "goaway" event includes a stream ID, which denotes the last successfully processed stream; that is, all later streams are invalid. The APNs documentation also says the GOAWAY frame includes JSON data that contains a `reason` key describing the error, which should prove useful for diagnosing errors due to GOAWAY frames.
2018-10-11 17:55:51 -07:00
..
2017-02-08 09:20:56 +01:00
2016-09-24 02:44:26 +01:00
2018-10-11 17:55:51 -07:00
2016-09-25 20:31:06 +01:00
2016-08-09 21:31:11 +01:00