- Documentation (2.5.3)- Release Notes
- Tutorials
- Reference- Introduction
- System Properties
- Settings Files
- Ivy Files
- Ant Tasks- artifactproperty
- artifactreport
- buildlist
- buildnumber
- buildobr
- cachefileset
- cachepath
- checkdepsupdate
- cleancache
- configure
- convertmanifest
- convertpom
- deliver
- dependencytree
- findrevision
- fixdeps
- info
- install
- listmodules
- makepom
- post resolve tasks
- publish
- report
- repreport
- resolve
- resources
- retrieve
- settings
- var
 
- Using standalone
- OSGi
 
- Developer doc
 
timeout-constraint
Tag: timeout-constraint
Defines a named timeout constraint that can then be referenced from other places of the Ivy settings file, like the resolvers.
Attributes
| Attribute | Description | Required | 
|---|---|---|
| name | name of timeout constraint | Yes | 
| connectionTimeout | An integer value, in milliseconds, that will be used as the timeout while establishing a connection. | No, defaults to  | 
| readTimeout | An integer value, in milliseconds, that will be used as the timeout while reading content from a resource to which an connection has been established. | No, defaults to  | 
Examples
    <timeout-constraints>
        <timeout-constraint name="test-timeout-1" connectionTimeout="100" readTimeout="500"/>
        <timeout-constraint name="test-timeout-2" readTimeout="20"/>
        <timeout-constraint name="test-timeout-3" connectionTimeout="400"/>
        <timeout-constraint name="test-timeout-4"/>
    </timeout-constraints>Here we see 4 timeout constraints defined:
- 
test-timeout-1uses a connection timeout of 200 milliseconds and read timeout of 500 milliseconds.
- 
test-timeout-2uses a read timeout of 20 milliseconds and lets the connection timeout default to -1.
- 
test-timeout-3uses a connection timeout of 400 milliseconds and lets the read timeout default to -1.
- 
test-timeout-4lets both the connection timeout and read timeout default to -1.
