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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 8 Sep 2017 19:10:51 +0000 (15:10 -0400)
commit0706c682b0e67249617c527616a002b3aec9dc38
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>
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