Skip to content

Commit

Permalink
Merge pull request #2689 from HenrikJannsen/reduce-userNodeSocketTimeout
Browse files Browse the repository at this point in the history
Reduce user node socket timeout
  • Loading branch information
HenrikJannsen authored Aug 25, 2024
2 parents b3c2b65 + 37ba30f commit a99624c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions apps/desktop/desktop-app/src/main/resources/desktop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ application {
configByTransportType {
clear {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
devModeDelayInMs = 300
sendMessageThrottleTime = 200
receiveMessageThrottleTime = 200
Expand All @@ -189,7 +189,7 @@ application {
bootstrapTimeout = 240
hsUploadTimeout = 120
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
testNetwork = false
directoryAuthorities = []
torrcOverrides = {}
Expand All @@ -198,7 +198,7 @@ application {
}
i2p {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
i2cpHost = "127.0.0.1"
i2cpPort = 7654
inboundKBytesPerSecond = 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private void doTakeOffer(BisqEasyOffer bisqEasyOffer, UserIdentity takerIdentity
closeAndNavigateToHandler.accept(NavigationTarget.BISQ_EASY);
throw new RuntimeException("Take offer message sending did not succeed after 2 minutes.");
})
.after(2, TimeUnit.MINUTES);
.after(150, TimeUnit.SECONDS); // We have 120 seconds socket timeout, so we should never get triggered here, as the message will be sent as mailbox message
bisqEasyOpenTradeChannelService.sendTakeOfferMessage(tradeId, bisqEasyOffer, contract.getMediator())
.thenAccept(result -> UIThread.run(() -> {
timeoutScheduler.stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ private void doTakeOffer(BisqEasyOffer bisqEasyOffer, UserIdentity takerIdentity
closeAndNavigateToHandler.accept(NavigationTarget.BISQ_EASY);
throw new RuntimeException("Take offer message sending did not succeed after 2 minutes.");
})
.after(2, TimeUnit.MINUTES);
.after(150, TimeUnit.SECONDS); // We have 120 seconds socket timeout, so we should never get triggered here, as the message will be sent as mailbox message

bisqEasyOpenTradeChannelService.sendTakeOfferMessage(tradeId, bisqEasyOffer, contract.getMediator())
.thenAccept(result -> UIThread.run(() -> {
Expand Down
6 changes: 3 additions & 3 deletions apps/oracle-node-app/src/main/resources/oracle_node.conf
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ application {
configByTransportType {
clear {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
devModeDelayInMs = 300
sendMessageThrottleTime = 200
receiveMessageThrottleTime = 200
Expand All @@ -192,7 +192,7 @@ application {
bootstrapTimeout = 240
hsUploadTimeout = 120
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
testNetwork = false
directoryAuthorities = []
torrcOverrides = {}
Expand All @@ -201,7 +201,7 @@ application {
}
i2p {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
i2cpHost = "127.0.0.1"
i2cpPort = 7654
inboundKBytesPerSecond = 1024
Expand Down
6 changes: 3 additions & 3 deletions apps/rest-api-app/src/main/resources/rest_api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ application {
configByTransportType {
clear {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
devModeDelayInMs = 300
sendMessageThrottleTime = 200
receiveMessageThrottleTime = 200
Expand All @@ -188,7 +188,7 @@ application {
bootstrapTimeout = 240
hsUploadTimeout = 120
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
testNetwork = false
directoryAuthorities = []
torrcOverrides = {}
Expand All @@ -197,7 +197,7 @@ application {
}
i2p {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
i2cpHost = "127.0.0.1"
i2cpPort = 7654
inboundKBytesPerSecond = 1024
Expand Down
6 changes: 3 additions & 3 deletions apps/seed-node-app/src/main/resources/seed_node.conf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ application {
configByTransportType {
clear {
defaultNodeSocketTimeout = 120
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
defaultNodePort = 8000
devModeDelayInMs = 300
sendMessageThrottleTime = 200
Expand All @@ -177,7 +177,7 @@ application {
bootstrapTimeout = 240
hsUploadTimeout = 120
defaultNodeSocketTimeout = 300
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
defaultNodePort = 1000
testNetwork = false
directoryAuthorities = []
Expand All @@ -187,7 +187,7 @@ application {
}
i2p {
defaultNodeSocketTimeout = 300
userNodeSocketTimeout = 600
userNodeSocketTimeout = 120
defaultNodePort = 2000
i2cpHost = "127.0.0.1"
i2cpPort = 7654
Expand Down

0 comments on commit a99624c

Please sign in to comment.