diff --git a/lib/http/2/connection.rb b/lib/http/2/connection.rb
index <HASH>..<HASH> 100644
--- a/lib/http/2/connection.rb
+++ b/lib/http/2/connection.rb
@@ -558,9 +558,9 @@ module HTTP2
           # Setting header table size might cause some headers evicted
           case side
           when :local
-            @decompressor.table_size = v
-          when :remote
             @compressor.table_size = v
+          when :remote
+            @decompressor.table_size = v
           end
 
         when :settings_enable_push
updating decompressor table size when receiving acknowledge settings instead