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:
Joakim Erdfelt 2024-05-12 14:30:07 +00:00 committed by GitHub
commit dd611b4e79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ public class HttpInput extends ServletInputStream implements Runnable
LOG.debug("recycle {}", this);
_blockingContentProducer.recycle();
_contentProducer = _blockingContentProducer;
_readListener = null;
}
}

View File

@ -61,6 +61,7 @@ public class HttpInput extends ServletInputStream implements Runnable
if (LOG.isDebugEnabled())
LOG.debug("recycle {}", this);
_blockingContentProducer.recycle();
_readListener = null;
}
}