Connection and Read Timeout
By default, the Web Service and Web Request blocks use 20 seconds each for the connection timeout and read timeout. The following steps describe how to configure the timeouts:
- Create a new folder called WEB-INF inside the Composer Project.
- Create a property file named composer.properties inside the WEB-INF folder.
- Add the following properties (case-sensitive) to composer.properties with the timeout values:
The value specified should be in milliseconds. The connectionTimeout property is a specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by the URL. The readTimeout property is a nonzero integer value, in milliseconds, to be used when reading from an input stream when a connection is established to a URL resource.