aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-22 22:29:56 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-22 22:35:32 +0000
commitedbae2d05bd3f05566adf5c68e4853dcd7da4a64 (patch)
treef39fdd1f64a10d3f76a9303cb4bde40dcadff242 /contrib
parentMerge pull request #5466 (diff)
downloadmonero-edbae2d05bd3f05566adf5c68e4853dcd7da4a64.tar.xz
levin_protocol_handler_async: tune down preallocation a fair bit
It can allocate a lot when getting a lot of connections (in particular, the stress test on windows apparently pushes that memory to actual use, rather than just allocated)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h
index a1ea3e680..116b3ace1 100644
--- a/contrib/epee/include/net/levin_protocol_handler_async.h
+++ b/contrib/epee/include/net/levin_protocol_handler_async.h
@@ -266,7 +266,7 @@ public:
m_pservice_endpoint(psnd_hndlr),
m_config(config),
m_connection_context(conn_context),
- m_cache_in_buffer(256 * 1024),
+ m_cache_in_buffer(4 * 1024),
m_state(stream_state_head)
{
m_close_called = 0;