Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return buffers to pool on network errors or queue overflow #2609

Merged
merged 1 commit into from
Oct 30, 2020

Commits on Oct 30, 2020

  1. Prevent memory leak in on dropped packets or network errors

    Use of sync.Pool requires a .Put for every .Get.
    On success, the downstream ThriftProcessor invoked .Put via .DataRecd
    but in error cases there seems to be a leak.
    
    Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
    chlunde committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    8b7b6df View commit details
    Browse the repository at this point in the history