Motivation: `AbstractHttpData.checkSize` may throw an IOException if we set the max size limit via `AbstractHttpData.setMaxSize`. However, if this exception happens, the `AbstractDiskHttpData.file` and the `AbstractHttpData.size` are still be modified. In other words, it may break the failure atomicity here. Modification: Just move up the size check. Result: Keep the failure atomicity even if `AbstractHttpData.checkSize` fails. |
||
---|---|---|
.. | ||
src | ||
pom.xml |