Release OutboundQueueEntry callback on completion 91/21391/1
authorRobert Varga <rovarga@cisco.com>
Thu, 28 May 2015 22:20:39 +0000 (00:20 +0200)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Fri, 29 May 2015 07:42:17 +0000 (07:42 +0000)
commitf05d7a5b91980627e3e19ac88352813eb5afec10
tree669dfad959b43ee6c76e6e1f378e46a55d1fec62
parenta302a0cc64ab45e0dd3d504a6b0248c3f1f9e3df
Release OutboundQueueEntry callback on completion

Memory traces of steady state with mininet have shown we are retaining
already-completed callbacks for the duration of the OutboundQueueImpl's
generation. For multipart requests that means we end up holding up large
chunks of memory for extended time, leading to unacceptable memory
pressure which can be easily avoided.

Change-Id: I2a980fc454583e8fb5d7fe44e47d7ddf076c650b
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 6b6700b60e2db29fdb23d2044ab254accf86ecc9)
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueEntry.java