Skip to content
New issue

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

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

Already on GitHub? # to your account

Properly initialize array of atomics in ws server #3020

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

cryptocode
Copy link
Contributor

Came across [1] where C++20 fixes atomic default initialization. I believe this issue applies to the array of atomics in websockets. Recent compilers seem to do the right thing, and worst case is unnecessary checks with subscriptions.find, but should be fixed nevertheless.

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0883r2.pdf

@cryptocode cryptocode added the bug label Oct 25, 2020
@cryptocode cryptocode self-assigned this Oct 25, 2020
@wezrule wezrule added this to the V22.0 milestone Oct 26, 2020
@clemahieu clemahieu merged commit 25e952d into nanocurrency:develop Oct 26, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants