mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
net: make vRecvMsg a list so that we can use splice()
This commit is contained in:
@@ -1859,7 +1859,7 @@ void CConnman::ThreadMessageHandler()
|
||||
|
||||
if (pnode->nSendSize < GetSendBufferSize())
|
||||
{
|
||||
if (!pnode->vRecvGetData.empty() || (!pnode->vRecvMsg.empty() && pnode->vRecvMsg[0].complete()))
|
||||
if (!pnode->vRecvGetData.empty() || (!pnode->vRecvMsg.empty() && pnode->vRecvMsg.front().complete()))
|
||||
{
|
||||
fSleep = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user