mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-27 05:04:23 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user