mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 11:16:11 -04:00
Log nr peers
This commit is contained in:
parent
49a1dacab6
commit
d65e020ece
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
package io.bitsquare.p2p.peers;
|
package io.bitsquare.p2p.peers;
|
||||||
|
|
||||||
|
import io.bitsquare.app.DevFlags;
|
||||||
import io.bitsquare.app.Log;
|
import io.bitsquare.app.Log;
|
||||||
import io.bitsquare.common.Clock;
|
import io.bitsquare.common.Clock;
|
||||||
import io.bitsquare.common.Timer;
|
import io.bitsquare.common.Timer;
|
||||||
|
@ -211,6 +212,9 @@ public class PeerManager implements ConnectionListener {
|
||||||
Set<Connection> allConnections = networkNode.getAllConnections();
|
Set<Connection> allConnections = networkNode.getAllConnections();
|
||||||
int size = allConnections.size();
|
int size = allConnections.size();
|
||||||
log.info("We have {} connections open. Our limit is {}", size, limit);
|
log.info("We have {} connections open. Our limit is {}", size, limit);
|
||||||
|
if (DevFlags.STRESS_TEST_MODE)
|
||||||
|
System.err.println("Connections = " + size);
|
||||||
|
|
||||||
if (size > limit) {
|
if (size > limit) {
|
||||||
log.info("We have too many connections open.\n\t" +
|
log.info("We have too many connections open.\n\t" +
|
||||||
"Lets try first to remove the inbound connections of type PEER.");
|
"Lets try first to remove the inbound connections of type PEER.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue