I see in my ARI application that once in a while the http requests the application sends to Asterisk are received but there’s no answer back. The server is up; I know this because the websocket connection is reacting normally to websocket ping packets sent every 15 seconds.
One of the theories I have to explain this rare occurrence (2 or 3 times a week per server on a very busy application) is that a keep-alive socket goes stale.
- Will Asterisk honor a “Connection:close” header in the request so that keep-alive sockets are not used?
- How to otherwise recognize that the socket is no longer good and recreate it? should I also keep “pinging” the http connection?