GitHub user nsuke opened a pull request:

    https://github.com/apache/thrift/pull/1081

    THRIFT-3854 add a way in java to clear TFramedTransport read buffers

    imported from JIRA issue.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nsuke/thrift THRIFT-3854

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/1081.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1081
    
----
commit 839b88a4fa836bd30fa01fd047d9a4ba5b138a87
Author: Chris Lockfort <clockf...@palantir.com>
Date:   2016-06-16T21:52:19Z

    THRIFT-3854 add a way in java to clear TFramedTransport read buffers
    
    The use case that I would like this for is that I have a
    large number of Thrift connections in a connection pool,
    and upon return the used connection to the pool I would
    like to eagerly clean up the read buffer because I know
    it will not be used again until the connection is checked
    out and a new read puts a new buffer in its place.
    
    This saves a considerable amount of heap memory in my application.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to