MrBuddyCasino / ESP32_Alexa

An Alexa Smart Speaker project for the ESP32.
Mozilla Public License 2.0
265 stars 72 forks source link

Refactored ping event #34

Closed chegewara closed 6 years ago

chegewara commented 6 years ago

Refactored ping event to use async task and send nghttp2 ping frame instead of creating new connection.

In addition is small snippet that is controlling ping "timer" on user activity, ie push button. To not allow connection close when for some reason application is busy and cant send ping frame on exact time, i have set time to 5 60 999ms. Its valid when in menuconfig Tick rate is set to 1000. All this changes helps to avoid memory leak on ping event, but there still is one when GO_AWAY frame is handled (about 3kB).

MrBuddyCasino commented 6 years ago

Thanks!