LP#1709710: Make chunk sizing smart about XML quoting
authorMike Rylander <miker@esilibrary.com>
Fri, 18 Aug 2017 15:43:31 +0000 (11:43 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 8 Sep 2017 20:25:38 +0000 (16:25 -0400)
commit0f6819c539abc5799f84a09c3225065278407b7d
tree4951655e680bb660f762356428685bcd5bc02f76
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@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