Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix premature disconnections from seeds #5057

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f169cf1
Refactoring: Move PeerType outside of Connection
chimp1984 Jan 6, 2021
2c8c9ac
Add onMessageSent method to MessageListener
chimp1984 Jan 6, 2021
15cd42d
Add InitialDataRequest and InitialDataResponse marker interface for
chimp1984 Jan 6, 2021
809484e
Refactoring: Rename INITIAL_DATA_REQUEST to INITIAL_DATA_EXCHANGE
chimp1984 Jan 6, 2021
0f7a69d
Add ConnectionState class
chimp1984 Jan 6, 2021
86d0f96
Remove PeerType from Connection. Use ConnectionState instead.
chimp1984 Jan 6, 2021
0bb9d15
Fix null pointer
chimp1984 Jan 6, 2021
5f977ff
Use isSeedNode
chimp1984 Jan 6, 2021
e1b1781
Remove PeerType.SEED_NODE
chimp1984 Jan 6, 2021
3d55c16
Update display string and UI representation
chimp1984 Jan 6, 2021
acad31f
Do sorting at candidates stream.
chimp1984 Jan 6, 2021
4d64fac
Refactor: Rename lastInitialDataExchangeMessageTimeStamp to lastIniti…
chimp1984 Jan 6, 2021
cf4d89d
Behaviour change:
chimp1984 Jan 6, 2021
5628b7b
Refactor:
chimp1984 Jan 6, 2021
34230f4
Fix wrong return value for getMaxConnections
chimp1984 Jan 6, 2021
7414df0
Behaviour change: Remove removeSuperfluousSeedNodes method
chimp1984 Jan 6, 2021
769a78f
Behaviour change: Remove setAllowDisconnectSeedNodes method
chimp1984 Jan 6, 2021
c7bc772
Add safety filter to removeAnonymousPeers
chimp1984 Jan 6, 2021
3fa2242
Set expectedRequests to 5 in case of fullDaoNode as
chimp1984 Jan 6, 2021
347e680
Use OS independent double line breaks for better readability
chimp1984 Jan 6, 2021
a346db6
Handle BundleOfEnvelopes in ConnectionState
chimp1984 Jan 6, 2021
d13b7e7
Add seed node info, add line break
chimp1984 Jan 6, 2021
082cc33
Fix wrong param in addToMap
chimp1984 Jan 6, 2021
a996754
Improve log
chimp1984 Jan 6, 2021
8865d9b
Fix node display
chimp1984 Jan 6, 2021
14008a6
Add formatDurationAsWords to Utilities in common
chimp1984 Jan 6, 2021
379fec8
Fix translation string
chimp1984 Jan 6, 2021
63a87de
Add missing stub to mock
chimp1984 Jan 6, 2021
1dc71c9
Increase delay for reset
chimp1984 Jan 6, 2021
d8f9581
Ignore test
chimp1984 Jan 6, 2021
4aecd75
Add bytes sent/received to ConnectionStatistics
chimp1984 Jan 6, 2021
e0e1443
Add RRT for request / response
chimp1984 Jan 6, 2021
a1cb6d5
If duration is 0 we return "0.000 seconds" instead of empty string
chimp1984 Jan 6, 2021
bda9ebe
Change print statistics period to 5 min.
chimp1984 Jan 6, 2021
8ccfd65
Prevent calling shutdown at TorNetworkNode twice.
chimp1984 Jan 6, 2021
3f8972b
Call init after setting connectionState and connectionStatistics
chimp1984 Jan 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -90,7 +90,6 @@ public String getInfo() {
})
.collect(Collectors.toList())
.toString();
log.error(rrt);
if (rrt.equals("[]")) {
rrt = "";
} else {
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/main/java/bisq/network/p2p/peers/PeerManager.java
Expand Up @@ -174,7 +174,7 @@ public void onAwakeFromStandby(long missedMs) {
};
clockWatcher.addListener(clockWatcherListener);

printStatisticsTimer = UserThread.runPeriodically(this::printStatistics, TimeUnit.MINUTES.toSeconds(1));
printStatisticsTimer = UserThread.runPeriodically(this::printStatistics, TimeUnit.MINUTES.toSeconds(5));
}

public void shutDown() {
Expand Down