Force sync 'compression' under the batch threshold

Since we aren't actually compressing these anyway, only writing a checksum, sending these asynchronously causes strange bugs due to race conditions.
This commit is contained in:
Dylan K. Taylor 2017-06-06 11:31:18 +01:00
parent 87e54d7a3a
commit 9cc27b2719

View File

@ -1815,6 +1815,7 @@ class Server{
$compressionLevel = $this->networkCompressionLevel;
}else{
$compressionLevel = 0; //Do not compress packets under the threshold
$forceSync = true;
}
if(!$forceSync and !$immediate and $this->networkCompressionAsync){