Allow changing MAX_FRAME_SIZE. (#69)

Motivation:

SETTINGS_MAX_FRAME_SIZE is changeable: we should allow that change to
occur.

Modifications:

- Added fields for communicating MAX_FRAME_SIZE changes.
- Update the encoders/decoders as those settings change.
- Throw errors from the encoders/decoders if violated.

Result:

Users and remote peers can change MAX_FRAMES_SIZE.
This commit is contained in:
Cory Benfield authored and GitHub committed 2019-03-25 18:31:47 +02:00
1 parent 7e17e72f41
commit ed9244267b
9 files changed
+88 -4

No files matched your search

@@ -63,8 +63,7 @@ extension HasLocalSettings {
// respect that possibility.
effect.streamWindowSizeChange += Int(delta)
case .maxFrameSize:
// TODO(cory): Implement!
break
effect.newMaxFrameSize = newValue
default:
// No operation required
return
@@ -63,8 +63,7 @@ extension HasRemoteSettings {
// respect that possibility.
effect.streamWindowSizeChange += Int(delta)
case .maxFrameSize:
// TODO(cory): Implement!
break
effect.newMaxFrameSize = newValue
default:
// No operation required
return