Skip to content
Snippets Groups Projects
Commit 84578f78 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

value: reduce size limit to 14KB

parent 14cf0b31
No related merge requests found
......@@ -266,7 +266,7 @@ private:
static constexpr unsigned LISTEN_NODES {3};
/* The maximum number of values we store for a given hash. */
static constexpr unsigned MAX_VALUES {2048};
static constexpr unsigned MAX_VALUES {1024};
/* The maximum number of hashes we're willing to track. */
static constexpr unsigned MAX_HASHES {16384};
......
......@@ -80,7 +80,7 @@ using StorePolicy = std::function<bool(InfoHash key, std::shared_ptr<Value>& val
*/
using EditPolicy = std::function<bool(InfoHash key, const std::shared_ptr<Value>& old_val, std::shared_ptr<Value>& new_val, InfoHash from, const sockaddr* from_addr, socklen_t from_len)>;
static constexpr const size_t MAX_VALUE_SIZE {1024 * 56};
static constexpr const size_t MAX_VALUE_SIZE {1024 * 14};
struct ValueType {
typedef uint16_t Id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment