I m从事网络化申请工作,有同行档案传输部分(即时投递员),因此,我能够以宽松的方式恢复档案转让。
If there is an ongoing file transfer, and one user drops out, the recipient still knows how much of the file he s successfully received and therefore where to resume the transfer from. However, if the file has changed in the meantime, how can this be detected? With regards to my questions, I m not focused here on corruption by the network so much as corruption by the source file being altered.
我开始这样做的方式是,在寄出档案之前,让发人洗手,因此,收受人有一只洗衣机对结案进行检查。 然而,这只是发现腐败现象,除非每一方还恢复过头。 可以通过把档案放在地库中来缓解这一问题,并逐个.。 然而,洗衣的最大问题是,它需要真正、真正长期的时间,当用户想立即发送某种东西时,这只是一种不良的用户经验(Ex. :关于网络份额缓慢的ISO是寄出的档案)。
I was thinking about changing to simply checking the file size and modified date each time a transfer begins or is resumed. While this is clearly not foolproof, unless I m missing something (and please correct me if I am), almost every means an end-user would be using to alter files will be well-behaved and at the very least mark the modified date, and even if not, the change in size should catch 99% of cases. Does this seem like an acceptable compromise? Bad idea?
How do the established protocols handle this?