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>
LP#1612771: fix error in POD Signed-off-by: Galen Charlton <gmc@esilibrary.com>
LP#1612771: Perl max_chunk_size additions * Added missing max_chunk_size method to AppSession * Copy API max_chunk_size value into the handler AppRequest * Fix error where no-chunking resulted in empty responses Signed-off-by: Bill Erickson <berick@esilibrary.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
LP#1612771: bundling and chunking This patch is first in a series of patches that provides the following features: * OpenSRF message bundling -- Pack multiple OpenSRF messages together in a single XMPP envelope, as long as we believe more messages will be sent in the future and we are below some threshold of combined message size. The default for that threshold is 25Kb. * OpenSRF message chunking -- Break up large OpenSRF messages across multiple XMPP envelopes. This is implemented with a new OpenSRF message type. C, Perl, and Javascript libraries are taught how to reconstruct chunked messages. The default chunking threshold is 50Kb, just a bit below the default ejabberd max stanza size of 64Kb. This patch in particular renames "chunking" to "bundling", then implements message splitting ("chunking") in Perl using two new oilsResult subclasses Signed-off-by: Mike Rylander <mrylander@gmail.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
method prettyJSON doesnt exist anymore git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1751 9efc2488-bf62-4759-914b-345cdb29e865
merging perl CPANification/normalization branch work git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1418 9efc2488-bf62-4759-914b-345cdb29e865