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).
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).