Browse Source

Avoid returning many "inv" orphans

0.10
Jeff Garzik 10 years ago committed by Wladimir J. van der Laan
parent
commit
540ac4514d
  1. 5
      src/main.cpp

5
src/main.cpp

@ -3639,6 +3639,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, @@ -3639,6 +3639,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
// Track requests for our stuff
g_signals.Inventory(inv.hash);
if (pfrom->nSendSize > (SendBufferSize() * 2)) {
Misbehaving(pfrom->GetId(), 50);
return error("send buffer size() = %u", pfrom->nSendSize);
}
}
}

Loading…
Cancel
Save