pjscallSocketTimeout
This setting is for advanced use only; the default value should be optimal in most scenarios. This option was added in Profound.js 6.0.0.
Description
This setting controls the lifetime of WebSocket connections from the PJSCALL command/program and Profound.js proxy programs to the Profound.js server.
The IBM i-side programs and commands keep the WebSocket connection open for the duration of the activation group. If the IBM i job becomes idle, the connection can remain open for long periods. This setting controls how long the server waits with no activity on the socket before it closes the connection.
The IBM i programs and commands reconnect automatically if the job becomes active again after the server closes the connection. The purpose of this option is simply to allow the server to clean up long-idle or potentially broken connections.
The value is specified in milliseconds. The default value is 600000 (10 minutes).
Example
"pjscallSocketTimeout": 300000Auto-Alignment With the timeout Setting
As of Profound.js version 7.31.0, if pjscallSocketTimeout is not explicitly set, it automatically aligns with the timeout setting, converted from seconds to milliseconds.
For example:
If
timeoutis set to7200, thenpjscallSocketTimeoutdefaults to7200000(2 hours);If neither setting is specified, the default remains
600000(10 minutes).
In previous versions, pjscallSocketTimeout always defaulted to 600000 regardless of the timeout setting. This could cause Profound.js call request interrupted errors in proxy mode when user idle time exceeded 10 minutes. With auto-alignment, the WebSocket timeout now matches the session timeout automatically, preventing these interruption errors.
For information on how to modify this setting, see Configuration File.