mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 22:37:55 +00:00
increase allowed size of putData request (size of 140-characters UTF-8 message may be up to 140*4=560 bytes)
This commit is contained in:
parent
c7e35d86a2
commit
701d84e7f8
@ -1359,7 +1359,7 @@ void node_impl::incoming_request(msg const& m, entry& e)
|
||||
|
||||
// pointer and length to the whole entry
|
||||
std::pair<char const*, int> 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user