Reduce SyncML MaxMsgSize to 10000

This commit is contained in:
Jörg Lehrke 2010-04-14 17:29:03 +00:00
parent 2b9198e8f7
commit c130fee383

View File

@ -405,10 +405,9 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
$output->startElement($uri, 'Meta', $attrs);
if (!($maxMsgSize = $state->getMaxMsgSizeClient())) {
// Dummy MaxMsqSize, this is just put in to make the packet
// work, it is not our real value.
$maxMsgSize = 50000;
if (!($maxMsgSize = $state->getMaxMsgSizeClient()) || $maxMsgSize > 10000) {
// Use a realistic message size to cope with
$maxMsgSize = 10000;
}
$output->startElement($uriMeta, 'MaxMsgSize', $attrs);
$output->characters($maxMsgSize);