Files
James Ide 323fe08d3a Set the HTTP/2 session's event listener count to infinity to address warnings
When sending notifications using a newly constructed APN provider all at once, the HTTP/2 session will queue up the calls to `this.session.request()`. Internally, the HTTP/2 session adds a "connect" event listener for each request since it needs to wait until the connection has been established before it can actually send the requests.

As a result, if more than 10 notifications are sent at once (to a new APN provider whose HTTP/2 session is still setting up the connection), the HTTP/2 session will add more than 10 "connect" event listeners, triggering a MaxListenersExceededWarning. Setting the max listener count to infinity addresses this warning.

Additionally, looking through the code, the APN client doesn't otherwise add an unbounded number of event listeners to the HTTP/2 session (listeners are mostly added just once, when the session is constructed), so this commit shouldn't hide actual problems.
2018-07-24 13:44:40 -07:00
..
2017-02-08 09:20:56 +01:00
2016-09-24 02:44:26 +01:00
2016-09-25 20:31:06 +01:00
2016-08-09 21:31:11 +01:00