summaryrefslogtreecommitdiff
path: root/test/PeerConnectionTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-06-10 00:14:48 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-06-10 00:14:48 +0900
commite220c5384961f9261f19c28cd0b85f76f06d8993 (patch)
tree3dd3cbcc05aa11b3a36d84ed11afcc9c222d1312 /test/PeerConnectionTest.cc
parentc7d242e27d8e9c9160c58e89f0ab196eb77fc9f7 (diff)
BitTorrent: Allow 32KiB request
It looks like the 32KiB is the default request size of python bittorrent client. Previously, aria2 only allowed maximum 16KiB request.
Diffstat (limited to 'test/PeerConnectionTest.cc')
-rw-r--r--test/PeerConnectionTest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/PeerConnectionTest.cc b/test/PeerConnectionTest.cc
index 9d580285..f1d8374d 100644
--- a/test/PeerConnectionTest.cc
+++ b/test/PeerConnectionTest.cc
@@ -28,7 +28,7 @@ void PeerConnectionTest::testReserveBuffer()
CPPUNIT_ASSERT_EQUAL((size_t)MAX_BUFFER_CAPACITY, con.getBufferCapacity());
CPPUNIT_ASSERT_EQUAL((size_t)3, con.getBufferLength());
- constexpr size_t newLength = 32_k;
+ constexpr size_t newLength = 64_k;
con.reserveBuffer(newLength);
CPPUNIT_ASSERT_EQUAL(newLength, con.getBufferCapacity());