StringDecoder buffer leak related to maxInMemorySize limit #24339
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
This was discovered while working on implementing the same type of limit for
ServerSentEventsMessageReader
which depends onStringDecoder
to split the stream into lines (see #24312).When a single input buffer contains multiple lines in which case slices for each line are retained, and if one of the earlier lines exceeds the limit, then subsequent lines are not released. This is due to a suspected issue with
concatMapIterable
not respectingdoOnDiscard
. I've added a reactor/reactor-core#1925 (comment) related to that.The goal for this issue is to add a workaround.
The text was updated successfully, but these errors were encountered: