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

Improve shutdown process #5905

Merged
merged 4 commits into from
Dec 8, 2021

Conversation

chimp1984
Copy link
Contributor

I observed several times that the app shutdown got blocked for about 1 minute. I could not find out what blocks it, but I suspect its in the network/tor layer. I added more logs to make it easier to spot the issue and improved the shutdown process as well as reduced the timeouts. There was also a incorrect handling of the tor shutdown process which got fixed.

requires still tor when sending close messages.
Reduce timeout from 5 sec to 2 sec.
Reduce timeout for executor shutdown from 500 ms to 100 ms
Move timeout before shutdown sequence starts and use a Timer thread instead of
UserThread to avoid that in case the UserThread gets blocked that the timeout
would not get triggered.
Reduce timeout from 20 sec. to 10 sec.
Add logs when shutdown starts
Return early at connection if stopped
Cleanup logs
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ripcurlx ripcurlx added this to the v1.8.0 milestone Dec 8, 2021
@ripcurlx ripcurlx merged commit ff38097 into bisq-network:master Dec 8, 2021
@chimp1984 chimp1984 deleted the improve_shutdown_process branch December 9, 2021 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants