I have enabled the session_keep_alive in my http.conf and my application is connecting to asterisk via websocket on 8088 port. I checked through pcap that the asterisk is not sending keepalive to my application and in certain scenarios of network fluctuation my old connection remains established even though a new connection has been made by the application(The old connection is cleaned up from the application/client side).
My http.conf sample:
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/keys/foo.pem
tlsprivatekey=/etc/asterisk/keys/foo.pem
session_keep_alive=5000