From 701d84e7f8d7f5b6868e6277dc178d207e947e28 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Thu, 28 Aug 2014 23:07:37 +0400 Subject: [PATCH] increase allowed size of putData request (size of 140-characters UTF-8 message may be up to 140*4=560 bytes) --- libtorrent/src/kademlia/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index 0bc63f9a..db08fd66 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -1359,7 +1359,7 @@ void node_impl::incoming_request(msg const& m, entry& e) // pointer and length to the whole entry std::pair buf = msg_keys[mk_p]->data_section(); - int maxSize = (multi) ? 512 : 8192; // single is bigger for avatar image etc + int maxSize = (multi) ? 768 : 8192; // single is bigger for avatar image etc // Note: when increasing maxSize, check m_buf_size @ udp_socket.cpp. if (buf.second > maxSize || buf.second <= 0) {