socketInactivityTimeout
This setting was added in Profound.js 5.3.0. In prior releases, the inactivity timeout on connections to the server is 1 hour and is not configurable.
Description
This setting adjusts or disables the inactivity timeout on connections to the server. The inactivity timeout is used to abort long-running requests.
The value specified is passed to the Node.js server.setTimeout() method.
Valid Values
0 - Disables the inactivity timeout;
Integer > 0 - Sets the inactivity timeout, in milliseconds.
The default value, if the setting is not specified, is 3600000 (1 hour).
Example 1: Shorten the Timeout
"socketInactivityTimeout": 120000 // Set inactivity timeout to 2 minutes.Example 2: Disable the Timeout
"socketInactivityTimeout": 0 // Disable inactivity timeout.Auto-Alignment With the timeout Setting
As of Profound.js version 7.31.0, if socketInactivityTimeout is not explicitly set, it automatically aligns with the timeout setting, converted from seconds to milliseconds.
For example:
If
timeoutis set to7200, thensocketInactivityTimeoutdefaults to7200000(2 hours);If neither setting is specified, the default remains
3600000(1 hour).
In previous versions, socketInactivityTimeout always defaulted to 3600000 regardless of the timeout setting. This could cause premature socket termination in proxy mode when timeout exceeded one hour. With auto-alignment, socket-level timeouts now match the session timeout automatically, preventing these premature disconnections.
For information on how to modify this setting, see Configuration File.