Commit 407c07bc authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-723 Overwrite windowsSize only if it's bigger than the available

global windowSize.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 63f86fdc
......@@ -909,7 +909,7 @@ class Sync extends RequestProcessor {
// limit windowSize to the max available limit of the global window size left
$globallyAvailable = $sc->GetGlobalWindowSize() - $globallyExportedItems;
if ($changecount > $globallyAvailable) {
if ($changecount > $globallyAvailable && $windowSize > $globallyAvailable) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandleSync(): Limit window size to %d as the global window size limit will be reached", $globallyAvailable));
$windowSize = $globallyAvailable;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment