Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #5960

Category None
Changed by Galen Charlton <gmcohnoyoudont@equinoxinitiative.org>
Changed at Fri 04 Jan 2019 14:06:37
Repository git://git.evergreen-ils.org/OpenSRF.git
Project OpenSRF
Branch master
Revision efa9b713d5341458a3afaa26d1cf9e750fa78654


LP#1729610: return new OpenSRF status if backlog queue fills up
This patch teaches Perl services how to return a new OpenSRF status,
OSRF_STATUS_SERVICEUNAVAILABLE (code 503) if the backlog queue
for a service gets full.

To test
[1] Set a low max_backlog_queue for opensrf.sloooow and a low
[2] Arrange for srfsh to fire off a bunch of opensrf.sloooow.wait
[3] Verify that requests that come in after the backlog queue fills
    up immediately get 503 exceptions.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Changed files