Skip to main content

Managing Keep-Alive Behavior

Managing Keep-Alive Behavior

If you reuse the same instance of %Net.HttpRequestOpens in a new tab to send multiple HTTP requests, by default, InterSystems IRIS keeps the TCP/IP socket open so that InterSystems IRIS does not need to close and reopen it.

If you do not want to reuse the TCP/IP socket, set the SocketTimeout property to 0.

The SocketTimeout property of %Net.HttpRequestOpens in a new tab specifies the window of time, in seconds, during which InterSystems IRIS will reuse a given socket. This timeout is intended to avoid using a socket that may have been silently closed by a firewall. The default value for this property is 115. You can set it to a different value.

FeedbackOpens in a new tab