Merge branch 'fix-comment' of https://github.com/tobbez/aria2 into tobbez-fix-comment

pull/735/head
Tatsuhiro Tsujikawa 2016-08-30 21:30:39 +09:00
commit 834025183f
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ HandshakeExtensionMessage::create(const unsigned char* data, size_t length)
fmt("Negative metadataSize %" PRId64 " was received", size)); fmt("Negative metadataSize %" PRId64 " was received", size));
} }
// Only accept metadata smaller than 1MiB. Be aware that broken // Only accept metadata up to 8MiB in size. Be aware that broken
// client can send negative size! // client can send negative size!
if (size > 0 && size <= static_cast<int64_t>(8_m)) { if (size > 0 && size <= static_cast<int64_t>(8_m)) {
msg->metadataSize_ = size; msg->metadataSize_ = size;