tcpKeepAlive
This setting was added in Profound.js 5.3.0. In prior releases, TCP keepalives are disabled on connections to the server.
This setting is used to disable TCP keepalives on connections to the server, or to adjust the TCP keepalive time.
TCP keepalives are used to automatically detect and dispose of broken connections. See section TCP keepalive here for an explanation of the process. This setting corresponds to the keepalive time value. The value specified for this property is passed to the socket.setKeepAlive() method for all inbound server connections.
Valid values are:
0: Disables TCP keepalives
Integer > 0: Sets TCP keepalive time, in milliseconds
The default value if this setting is not specified is 300000 (5 minutes).
Note:Â TCP keepalive is not the same thing as HTTP keepalive.
Examples
"tcpKeepAlive": 600000 // Set TCP keepalive time to 10 minutes
"tcpKeepAlive": 0 // Disable TCP keepalives
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!