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

Change #5961

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 d7e9df6838f1c9a72db3fd41556d178cfe7f6700


LP#1729610: extend backlog queue to C apps
This patch extends the notion of a backlog queue to C apps and
offers the same functionality as the Perl side of the patch series:

- max_backlog_queue configuration setting
- ability to queue messages up to the configured limit
- ability to drop requests that would overflow the backlog
  queue and send status 503 exceptions back to the client.

This patch also adds a new service, opensrf.cslow, that implements
a opensrf.cslow.wait method similar to the Perl opensrf.slooooooow

To test
[1] Set a low max_backlog_queue for opensrf.cslow and a low
[2] Arrange for srfsh to fire off a bunch of opensrf.cslow.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