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

peer: Protect handlePongMsg with p.statsMtx #1438

Merged
merged 1 commit into from
Sep 6, 2018
Merged

Conversation

jrick
Copy link
Member

@jrick jrick commented Sep 6, 2018

Fixes #1437.

@jrick
Copy link
Member Author

jrick commented Sep 6, 2018

Side note: there appears to be many more writers than concurrent readers for these stats, so it may make sense to convert this to a simple mutex instead of a rw mutex.

@davecgh
Copy link
Member

davecgh commented Sep 6, 2018

I approved this, but we need to get #1435 in first so it fixes the Travis build.

@davecgh davecgh added this to the 1.4.0 milestone Sep 6, 2018
@jrick jrick merged commit 00a3f0e into decred:master Sep 6, 2018
@jrick jrick deleted the pongstatsmtx branch September 6, 2018 20:37
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