netty5/codec-http
feijermu 9751bb3ebc
Move up the size check in AbstractDiskHttpData.setContent. (#10222)
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.
2020-04-28 09:34:33 +02:00
..
src Move up the size check in AbstractDiskHttpData.setContent. (#10222) 2020-04-28 09:34:33 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-04-22 09:57:54 +00:00