You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use node-apn version 7.1.0 (latest published at the time of writing), and we are observing the following transient error: apn write failed: New streams cannot be created after receiving a GOAWAY
The error is self explanatory, the client attempts to write after receiving a goaway.
This can happen in the following scenario:
for whatever reason (maintenance, throttling, concurrency limit, etc..), the server initiates a goaway
the client proceeds with closing and destroying the session
meanwhile a new push notification is sent and write is called
line 174 and line 234 are can be evaluated to false, so the client tries to send a request on a closing session
The client should not initiate any further requests on a closing HTTP/2 session after a goaway is received. In other words, line 174 and line 234 should evaluate if the session is still active (not closing, not closed, not destroyed). PR: fix: Reconnect after receiving goaway #202
We will fork the repo internally and test the fix in production under load, and once the errors disappear, we would like to bring the fix upstream.
We use node-apn version 7.1.0 (latest published at the time of writing), and we are observing the following transient error:
apn write failed: New streams cannot be created after receiving a GOAWAYThe error is self explanatory, the client attempts to write after receiving a goaway.
This can happen in the following scenario:
The fix:
We will fork the repo internally and test the fix in production under load, and once the errors disappear, we would like to bring the fix upstream.