erickt / rust-zmq

Rust zeromq bindings.
Apache License 2.0
886 stars 189 forks source link

added from and into raw for Context #317

Open rosebeats opened 3 years ago

rosebeats commented 3 years ago

fixes #316

rosebeats commented 3 years ago

In addition to the changes I made in this PR, it may also be best to skip dropping the context if it was created this way since the context was most likely created outside rust, leading to the context being possibly closed while another non-Rust thread is still using it.