bump the max metadata size to 2 megabytes

This commit is contained in:
Arvid Norberg 2011-06-15 23:59:44 +00:00
parent 3ba914b419
commit a18649dc9b
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ namespace libtorrent { namespace
void metadata_size(int size)
{
if (m_metadata_size > 0 || size <= 0 || size > 500 * 1024) return;
if (m_metadata_size > 0 || size <= 0 || size > 2 * 1024 * 1024) return;
m_metadata_size = size;
m_metadata.reset(new char[size]);
m_requested_metadata.resize(div_round_up(size, 16 * 1024));