Configuring HTTP and HTTPS connections for Contextual Image Delivery
In an <image> section in cwd_engine_conf.xml, you can configure the properties of your HTTP connections.
Procedure
- Access the WEB-INF/classes/ (Java) or bin\config\ (.NET) subdirectory of your CID Web application.
- Open cwd_engine_conf.xml for editing.
- Inside the
<context>section, ensure the presence of an<http>section. - To configure connection pooling, inside the
<http>section, insert a<pooling>section and insert one or both of the following subelements inside it:Element Default Description maxTotal300 Sets the maximum number of allowed connections overall. defaultMaxPerRoute100 Sets the maximum total number of allowed connections on a per-route basis. This ensures that concurrent connections to the same host are not serialized. - To configure timeouts, inside
<http>, insert one or both the following subelements:Element Default Description connectionTimeout20000 The maximum amount of time (in milliseconds) for each connection. socketTimeout20000 The maximum amount of time (in milliseconds) for each socket connection. - To ensure that redirects are followed, inside
<http>, insert a<redirecting>subelement and set it to the valuetrue. Defaults tofalseif not specified. - To configure SSL settings, inside
<http>, insert an<ssl>element and insert one or both of the following subelements inside it:Element Default Description enabledtrueSet to falseto indicate that HTTPS is not supported for your source images.securetrueSet to falseto indicate that SSL certificates should not be validated. - Save and close cwd_engine_conf.xml and restart the Web application to apply your changes.