shortHttpTimeout

shortHttpTimeout

As of Profound.js 7.6.0, shortHttpTimeout is deprecated and Profound.js writes a deprecation message to stderr at startup when it is used. Use httpRequestAPITimeout instead, which works with the pjs.httpRequest() API.

As of Profound.js 6.1.0, shortHttpTimeout does nothing. The API it affected, pjs.sendRequest(), has been replaced by pjs.httpRequest(). On affected versions, pass a timeout property in the options to pjs.httpRequest() to set the timeout for an individual request.

Description

This setting specifies the number of milliseconds to wait for standard HTTP requests to complete before they are aborted. All HTTP requests that did not use the longHttpTimeout setting used this value, including the pjs.sendRequest() API. If not specified, the value defaulted to 3000 milliseconds, which is 3 seconds. Added in v4.8.1.

Example

shortHttpTimeout: 500 // Set short HTTP time-out to 0.5 seconds.

For information on how to modify this setting, see Configuration File.