Open mano1979 opened 6 years ago
I understand, thx.
I dont want to open new issue just to show how it works (video on YT) and it is related to this issue(crash). Over 8 hours and still working:
E (29403294) alexa: PING
:status: 204
access-control-allow-origin: *
x-amzn-requestid: 021038fffed1de70-00002533-0008e088-71657edca9c72c00-f934d19a-23
E (29700295) alexa: PING
:status: 204
access-control-allow-origin: *
x-amzn-requestid: 021038fffed1de70-00002533-0008e088-71657edca9c72c00-f934d19a-25
The issue is memory leaking on access token refresh:
W (3037612) asio: 96: - RAM left 28808
........
W (23687034) asio: 96: - RAM left 17544
W (26752667) asio: 96: - RAM left 13992
New ping version looks and works way better than last one and which is most important does not cause memory leak. I will try to find time and prepare clean PR with it. Here is how it looks like:
nghttp2_session *session = alexa_session->stream_events->http2_session->h2_session;
nghttp2_submit_ping(session, NGHTTP2_FLAG_NONE, NULL);
Like i promissed there is refactored ping event. PR is ready to merge.
about every 10 to 15 minutes the code crashes and the esp32 is rebooted. Te histerical laugh almost giving me a heartattack. Crash report is below: