Browse Source

Allow larger ut_metadata size

Tatsuhiro Tsujikawa 9 năm trước cách đây
mục cha
commit
f6f672f4d9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/HandshakeExtensionMessage.cc

+ 1 - 1
src/HandshakeExtensionMessage.cc

@@ -217,7 +217,7 @@ HandshakeExtensionMessage::create(const unsigned char* data, size_t length)
 
     // Only accept metadata smaller than 1MiB.  Be aware that broken
     // client can send negative size!
-    if (size > 0 && size <= static_cast<int64_t>(1_m)) {
+    if (size > 0 && size <= static_cast<int64_t>(8_m)) {
       msg->metadataSize_ = size;
     }
   }