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:52:55 +0000 (09:52 -0400)
commit9a06421a90cf29e329d11aa916dd38c99e378383
tree05a28d220454b51ee87dac95e063aec7ba05d33b
parent5c1befa5a8b5bd9ab774077d6168da4faf8002ca
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