connection

Purpose

Defines default settings for all remote connections made by pipeline processes. The timeout attribute contains the default value for the following processes.

The feed:fetch, webd:get, webd:post and urid:fetch processes may be overridden in markup.

The timeout attribute specifies the default sent to the server and back timeout for all DCI operations that perform HTTP/HTTPS requests.

The enable-caching and max-cache-entries attributes enable or disable caching and set the cache size for responses to urid-fetch requests.

Contained by

Attribute

Attribute Description Type Default Options Use
enable-caching Enables caching. xs:boolean false  false, true  optional 
max-cache-entries The maximum number of cache entries. xs:integer 1000    optional 
timeout The default timeout to apply, in seconds. A negative or zero value indicates no timeout. xs:integer -1    optional 

Example

<pipeline-configuration>
  <caching-operation>
    <cache
      name="xmlcache"
      strategy="least-recently-used"
      max-entries="10"/>
  </caching-operation>
  <connection timeout="-1"
    enable-caching="false"
    max-cache-entries="1000"/>
</pipeline-configuration>

Related topics