You should keep HTTP sessions open even when client applications are idle to allow client applications to perform subsequent transactions over the open session. Based on system measurements and integration experience, you should keep an HTTP session open for a maximum of 10 minutes. The LDR service might automatically close an HTTP session that is kept open and idle for longer than 10 minutes.
Open and idle HTTP sessions provide the following benefits:
Reduced latency is the main advantage, especially for the amount of time required to establish TCP/IP and TLS connections.
Determining how long to keep an idle session open is a trade‐off between the benefits of slow start that is associated with the existing session and the ideal allocation of the session to internal system resources.