]
Radim Vansa commented on ISPN-7802:
-----------------------------------
Good point, Dennis - ISPN-5740 may not be enough as a big byte[] is passed down without
buffering anyway.
Use non-growing buffered input stream in TcpTransport
-----------------------------------------------------
Key: ISPN-7802
URL:
https://issues.jboss.org/browse/ISPN-7802
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols
Affects Versions: 9.0.0.Final
Reporter: Radim Vansa
Assignee: Tristan Tarrant
The buffering implementation of {{TcpTransport.socketInputStream}} needs to use fixed
size input buffer, rather than growing as {{BufferedInputStream}} does. Growing buffer can
lead to excessive memory consumption on heap, and more importantly, by direct memory
allocated in JDK classes and pooled in thread-local caches.