Warn when sending very large messages user/berick/warn-log-large-messages
authorBill Erickson <berick@esilibrary.com>
Tue, 18 Oct 2011 13:17:10 +0000 (09:17 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 18 Oct 2011 13:23:42 +0000 (09:23 -0400)
commit9a834e944caf23ad950637c1e6e6574213e91b0e
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>
examples/opensrf_core.xml.example
src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm