protected virtual void ApplyMaxFragmentLengthExtension() { if (mSecurityParameters.maxFragmentLength >= 0) { if (!MaxFragmentLength.IsValid((byte)mSecurityParameters.maxFragmentLength)) { throw new TlsFatalAlert(80); } int plaintextLimit = 1 << 8 + mSecurityParameters.maxFragmentLength; mRecordStream.SetPlaintextLimit(plaintextLimit); } }