~opensrf-project/opensrf/master

Viewing all changes in revision 2220.

  • Committer: Mike Rylander
  • Author(s): Galen Charlton
  • Date: 2019-01-04 19:06:37 UTC
  • Revision ID: git-v1: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
    max_children.
[2] Arrange for srfsh to fire off a bunch of opensrf.sloooow.wait
    requests.
[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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: