ARI - Does Asterisk use a keep-alive http connection?

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?

It will honor “Connection:close”.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.