IBackgroundCopyJob::SetMinimumRetryDelay method (bits.h)
Sets the minimum length of time that BITS waits after encountering a transient error condition before trying to transfer the file.
HRESULT SetMinimumRetryDelay( [in] ULONG Seconds );
Minimum length of time, in seconds, that BITS waits after encountering a transient error before trying to transfer the file. The default retry delay is 600 seconds (10 minutes). The minimum retry delay that you can specify is 5 seconds. If you specify a value less than 5 seconds, BITS changes the value to 5 seconds. If the value exceeds the no-progress-timeout value retrieved from the GetNoProgressTimeout method, BITS will not retry the transfer and moves the job to the BG_JOB_STATE_ERROR state.
This method returns the following HRESULT values, as well as others.
||Retry delay was successfully set.|
||The state of the job cannot be BG_JOB_STATE_CANCELLED or BG_JOB_STATE_ACKNOWLEDGED.|
To start the job before the minimum retry period expires, call the IBackgroundCopyJob::Resume method.
BITS does not retry the job if a network disconnect or disk lock error occurred (for example, chkdsk is running) or the MaxInternetBandwidth Group Policy is zero.
Note Changing the system clock does not affect the minimum retry delay. For example, if the current time is 2:00 P.M. and BITS is to retry the job at 2:10 P.M., moving the system clock forward ten or more minutes does not mean BITS will retry the job early—BITS will still retry the job in ten minutes. To reflect the system clock change in BITS, you must restart the computer or the BITS service.
|Minimum supported client||Windows XP|
|Minimum supported server||Windows Server 2003|