Changes between Version 1 and Version 2 of PersFileXfer


Ignore:
Timestamp:
Apr 25, 2007, 1:25:26 PM (17 years ago)
Author:
Nicolas
Comment:

Required manual changes to automatic conversion.

Legend:

Unmodified
Added
Removed
Modified
  • PersFileXfer

    v1 v2  
    22
    33A file upload or download may experience various types of '''transient failures''':
    4 
    54
    65 * One or more data servers have failed.
     
    87 * The host PC is turned off or the core client quits.
    98
    10  BOINC uses a mechanism called '''persistent file transfer''' for efficiently recovering from these conditions, and deciding when a '''permanent failure''' has occurred. The FILE_XFER class encapsulates a single transfer session to a particular data server. If the file has previously partially transferred, FILE_XFER resumes at the appropriate point.
     9BOINC uses a mechanism called '''persistent file transfer''' for efficiently recovering from these conditions, and deciding when a '''permanent failure''' has occurred. The FILE_XFER class encapsulates a single transfer session to a particular data server. If the file has previously partially transferred, FILE_XFER resumes at the appropriate point.
    1110
    1211The PERS_FILE_XFER class encapsulates a persistent file transfer, which may involve a sequence of FILE_XFERs, possibly to different data servers.
    1312
    1413When a file is involved in a persistent file transfer, the state is saved in the client state file in the following XML element (included in the <file_info> element):
    15 
    1614
    1715{{{
     
    2927When there is a transient failure, the core client increments num_retries and calculates a new next_request_time based on randomized exponential backoff, given by
    3028
    31 
    3229{{{
    3330next_request_time = current_time+max(MIN_DELAY,min(MAX_DELAY,exp(rand(0,1)*num_retries)))
    3431}}}
    35  Where MIN_DELAY is 1 minute and MAX_DELAY is 4 hours. The client classifies the transfer as a permanent failure if the current time becomes much later than this (default is two weeks).  ??? later than what?  In this event, the file will be deleted and the failure reported to the scheduling server.  ??? in what form?
    3632
     33Where MIN_DELAY is 1 minute and MAX_DELAY is 4 hours. The client classifies the transfer as a permanent failure if the current time becomes much later than this (default is two weeks).  ??? later than what?  In this event, the file will be deleted and the failure reported to the scheduling server.  ??? in what form?