zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.71k stars 2.35k forks source link

Problem: get_opt function read the options value not thread safe #4412

Closed caicaiking closed 2 years ago

caicaiking commented 2 years ago

Solution: use scoped lock to prevent them from being modified during reading

caicaiking commented 2 years ago

rewrite the commit message.

bluca commented 2 years ago

Also please add a relicense statement https://github.com/zeromq/libzmq/tree/master/RELICENSE

No need for a new PR, you can simply push a new commit to the same branch