mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options
This commit is contained in:
parent
a19553b992
commit
fa2f8bc47f
3 changed files with 6 additions and 2 deletions
|
|
@ -2063,8 +2063,8 @@ bool CConnman::Start(boost::thread_group& threadGroup, CScheduler& scheduler, st
|
|||
nMaxConnections = connOptions.nMaxConnections;
|
||||
nMaxOutbound = std::min((connOptions.nMaxOutbound), nMaxConnections);
|
||||
|
||||
nSendBufferMaxSize = 1000*GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER);
|
||||
nReceiveFloodSize = 1000*GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER);
|
||||
nSendBufferMaxSize = connOptions.nSendBufferMaxSize;
|
||||
nReceiveFloodSize = connOptions.nSendBufferMaxSize;
|
||||
|
||||
SetBestHeight(connOptions.nBestHeight);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue