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)
committerJason Stephenson <jason@sigio.com>
Sun, 10 Sep 2017 21:34:12 +0000 (17:34 -0400)
commitd7a64c65dc579011f58055fff15113068d714391
tree6bd1c390fe7431dc4bec0508fd0aac229a135aaa
parentaf4ab2355707083a22a2828202a541bf0e718bc0
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>
Signed-off-by: Jason Stephenson <jason@sigio.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