File tree Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ func (p *peer) send(msg Msg) bool {
197
197
newPendingBytes := p .net .pendingBytes + len (msgBytes )
198
198
newConnPendingBytes := p .pendingBytes + len (msgBytes )
199
199
if newPendingBytes > p .net .networkPendingSendBytesToRateLimit && // Check to see if we should be enforcing any rate limiting
200
+ uint32 (p .pendingBytes ) > p .net .maxMessageSize && // this connection should have a minimum allowed bandwidth
200
201
(newPendingBytes > p .net .maxNetworkPendingSendBytes || // Check to see if this message would put too much memory into the network
201
202
newConnPendingBytes > p .net .maxNetworkPendingSendBytes / 20 ) { // Check to see if this connection is using too much memory
202
203
p .net .log .Debug ("dropping message to %s due to a send queue with too many bytes" , p .id )
You can’t perform that action at this time.
0 commit comments