bump the max metadata size to 2 megabytes
This commit is contained in:
parent
3ba914b419
commit
a18649dc9b
|
@ -132,7 +132,7 @@ namespace libtorrent { namespace
|
||||||
|
|
||||||
void metadata_size(int size)
|
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_size = size;
|
||||||
m_metadata.reset(new char[size]);
|
m_metadata.reset(new char[size]);
|
||||||
m_requested_metadata.resize(div_round_up(size, 16 * 1024));
|
m_requested_metadata.resize(div_round_up(size, 16 * 1024));
|
||||||
|
|
Loading…
Reference in New Issue