]
Pedro Zapata updated HRJS-61:
-----------------------------
Sprint: Sprint 9.3.0.CR1 (was: JDG Sprint #13)
Avoid leaking Buffer instances from data Socket callback
--------------------------------------------------------
Key: HRJS-61
URL:
https://issues.jboss.org/browse/HRJS-61
Project: Infinispan Javascript client
Issue Type: Bug
Affects Versions: 0.4.0
Reporter: Galder ZamarreƱo
Assignee: Galder ZamarreƱo
Connection class keeps around a replayable buffer in case responses from server come in
chunks. On data callback references it creating a closure. However, if there's nothing
else to read, these buffers should be marked to null so that callback functions can be
garbage collected.