whikloj / BagItTools

A PHP BagIt library
MIT License
11 stars 5 forks source link

Abort oversized fetch requests #22

Closed whikloj closed 4 years ago

whikloj commented 4 years ago

According to the spec section 5.3

... Implementers SHOULD take steps to monitor and abort transfer when the received file size exceeds the file size reported in the fetch file. ...

This ticket is to abort the download if a fetch file has a size specified and the downloaded file is exceeds that size by some variance.