fetchtimeout
fetchtimeout
Default Value: 30 seconds
The interval to wait for the content to be returned before throwing an error.badfetch event. The value is a Time Designation.
Example
Explanation
From this example, “fetchtimeout” is a global property that can be set for all files that are to be fetched. After 20 seconds has passed and the content hasn't been fetched, an error.badfetch event is thrown. In this example, the sleep(25) will hold up the php script long enough to exceed the fetchtimeout of 20 seconds. Note that if you attempt to fetch a script that doesn't exist, an error.badfetch will immediately be thrown, and the fetchtimeout will be ignored.
Notes
Note that if you attempt to fetch a script that doesn't exist, an error.badfetch will immediately be thrown, and the fetchtimeout will be ignored.
Last updated