LP#1706147 Perl Force-Recycle drone option
authorBill Erickson <berickxx@gmail.com>
Mon, 24 Jul 2017 16:08:56 +0000 (12:08 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Nov 2018 18:09:15 +0000 (13:09 -0500)
commit304365165e7ba0cc08bb6c5f0ba25f0b541fd27d
treec95830fd39bf940b2eb558227ea7c9628ce98abc
parent51a4651186c94686051262a9255d165eadd4f049
LP#1706147 Perl Force-Recycle drone option

Creates an API-level option to inform the OpenSRF drone management code
that the running drone should be recycled upon completion of the current
OpenSRF session.  This allows for quicker release of resources consumed
by the drone.

To use:

sub some_api_method {
    my ($self, $client, ...) = @_;
    $self->session->force_recycle(1);
    ...
}

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
src/perl/lib/OpenSRF/AppSession.pm
src/perl/lib/OpenSRF/Server.pm