spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

Issue connecting to Apple's APNS servers #222

Closed anandsuresh closed 8 years ago

anandsuresh commented 8 years ago

Attempted to use node-spdy Agent with https to connect to the APNS servers, but ran into issues:

NODE_DEBUG="http" DEBUG="spdy*" node test/manual/apns.js asdf asdf
HTTP: write ret = false
HTTP: outgoing message end.
  spdy:client activating fallback +0ms
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ClientRequest.addListener (events.js:160:15)
    at ClientRequest.once (events.js:185:8)
    at ClientRequest.abort (http.js:1460:10)
    at PoolEndpoint.check_timeouts (/Users/anandsuresh/voxer-inc/server/poolee/pool_endpoint.js:156:33)
    at null.<anonymous> (/Users/anandsuresh/voxer-inc/server/poolee/pool_endpoint.js:61:18)
    at wrapper [as _onTimeout] (timers.js:261:14)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
anandsuresh commented 8 years ago

@indutny Filed an issue as discussed. Let me know if you need any more information/logs.

anandsuresh commented 8 years ago

Fixed and working now.

ethul commented 8 years ago

Out of curiosity, what was the fix here? Thanks!

indutny commented 8 years ago

I don't remember :( Sorry!

indutny commented 8 years ago

Perhaps I just added ALPN support.

ethul commented 8 years ago

No problem. Thanks for the info.

On Friday, 15 January 2016, Fedor Indutny notifications@github.com wrote:

Perhaps I just added ALPN support.

— Reply to this email directly or view it on GitHub https://github.com/indutny/node-spdy/issues/222#issuecomment-171881611.