Merge pull request #11775 from jetty/fix/12.0.x/readlistener-nullification
Issue #11766 - null out ReadListener on recycle to aid GC.
This commit is contained in:
commit
dd611b4e79
|
@ -65,6 +65,7 @@ public class HttpInput extends ServletInputStream implements Runnable
|
|||
LOG.debug("recycle {}", this);
|
||||
_blockingContentProducer.recycle();
|
||||
_contentProducer = _blockingContentProducer;
|
||||
_readListener = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ public class HttpInput extends ServletInputStream implements Runnable
|
|||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("recycle {}", this);
|
||||
_blockingContentProducer.recycle();
|
||||
_readListener = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue