]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
LP#1709710: Make chunk sizing smart about XML quoting user/miker/lp-1709710-smarter-chunk-length
authorMike Rylander <miker@esilibrary.com>
Fri, 18 Aug 2017 15:43:31 +0000 (11:43 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 28 Aug 2017 20:27:31 +0000 (16:27 -0400)
commitb8fd24edda64cdf673bbfa2ab62160e593ea3ce5
tree18e38011cc7e3839f54226a820a8e39e9be4a56a
parent53e7f82b534eef2b513fe31bcb2a9c719a7ee746
LP#1709710: Make chunk sizing smart about XML quoting

XML inside JSON as a quoted string that's itself inside XML causes quite the
pile up of nested excaping of certain characters in OpenSRF PARTIAL_RESPONSE
messages.  Here we check for the worst offenders (<, >, &, and ") and account
for the cost of escaping them in chunked response stanzas.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
include/opensrf/utils.h
src/libopensrf/osrf_app_session.c
src/libopensrf/osrf_application.c
src/libopensrf/utils.c
src/perl/lib/OpenSRF/AppSession.pm