-
Notifications
You must be signed in to change notification settings - Fork 274
Open
Labels
Description
Hi,
I'm reading the source code and just wondering that why there is no size limit when writing to the branched OutputStream? What if there is a really large HTTP response? Then the whole thing will be stuck inside a ByteArrayOutputStream which will easily use up all your memory. Also there is a configuration property called "logbook.write.max-body-size". You would think that it should be able to put an upper limit to the memory footprint no matter the size of the actual HTTP response body, but looks like it did not.
logbook/logbook-servlet/src/main/java/org/zalando/logbook/servlet/LocalResponse.java
Line 285 in af6f818
| branch.write(b); |