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

Set explicit 10 seconds timeout for P2P requests in our behavior. #911

Merged
merged 2 commits into from
Apr 20, 2021

Conversation

artemii235
Copy link
Member

Do not hold orderbook lock during GetOrderbook request.
#910

Do not hold orderbook lock during GetOrderbook request.
Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

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

Great! It looks like it should fix the deadlock. As far as I understand, you haven't tried to figure out why the request-response tests hang?

@artemii235
Copy link
Member Author

artemii235 commented Apr 20, 2021

@sergeyboyko0791

As far as I understand, you haven't tried to figure out why the request-response tests hang?

Not yet, the test hanged again after I set the 10 seconds timeout - most likely on wait_peers. Will confirm this assumption when the test hangs again.

Edit: what's also interesting: it hangs on Linux only, maybe it is something OS specific.

@artemii235 artemii235 merged commit 2adfc36 into mm2.1 Apr 20, 2021
@artemii235 artemii235 deleted the mm2.1-fix-p2p-requests-deadlock branch April 20, 2021 03:12
@sergeyboyko0791
Copy link

Not yet, the test hanged again after I set the 10 seconds timeout - most likely on wait_peers. Will confirm this assumption when the test hangs again.

Ok, thanks! I can look at the test today if there is a need to be done it as soon as possible

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