Skip to content

Commit c06fb6a

Browse files
committed
Police shrinking of table sizes
1 parent 69cac68 commit c06fb6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

h2/connection.py

+6
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,12 @@ def _local_settings_acked(self):
18871887
setting = changes[SettingCodes.MAX_FRAME_SIZE]
18881888
self.max_inbound_frame_size = setting.new_value
18891889

1890+
if SettingCodes.HEADER_TABLE_SIZE in changes:
1891+
setting = changes[SettingCodes.HEADER_TABLE_SIZE]
1892+
# This is safe across all hpack versions: some versions just won't
1893+
# respect it.
1894+
self.decoder.max_allowed_table_size = setting.new_value
1895+
18901896
return changes
18911897

18921898
def _stream_id_is_outbound(self, stream_id):

0 commit comments

Comments
 (0)