Stop processing messages on full send buffer and dont disconnect.

Also decrease default send/receive buffer sizes from 10 to 5 mb
as this patch makes it easy for a node to fill both instead of
only send.
This commit is contained in:
Matt Corallo
2012-03-21 22:10:50 -04:00
parent bcf0f41171
commit 9d6cd04b3b
4 changed files with 14 additions and 17 deletions

View File

@@ -922,11 +922,8 @@ void ThreadSocketHandler2(void* parg)
pnode->CloseSocketDisconnect();
}
}
if (vSend.size() > SendBufferSize()) {
if (!pnode->fDisconnect)
printf("socket send flood control disconnect (%d bytes)\n", vSend.size());
pnode->CloseSocketDisconnect();
}
if (vSend.size() > SendBufferSize())
printf("socket send buffer full warning (%d bytes)\n", vSend.size());
}
}
}