]> git.evergreen-ils.org Git - OpenSRF.git/commit
Warn when sending very large messages
authorBill Erickson <berick@esilibrary.com>
Tue, 18 Oct 2011 13:17:10 +0000 (09:17 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 18 Oct 2011 13:51:28 +0000 (09:51 -0400)
commit07b5a335656be741353ab70c1d4717dacdbebc1b
treed854c6295d64d1054e7a519839d2586b56440c7e
parentffb8bb73a2f505cfda9d8b97fab1f82aa3fb7097
Warn when sending very large messages

Depending on configuration, messages of a certain size sent through a
Jabber server will cause the jabber server to disconnect the client.
This change allows admins to configure a message size warning threshold.
When a message meets or exceeds the size threshold, a warning is issued
to the logs with the message size (in bytes) and the message recipient.
It does not prevent the message from being delivered.  It's purely
informational.

Use 1 800 000 as the default threhold.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
examples/opensrf_core.xml.example
src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm