Re: [zeromq-dev] Correct behavior for closing messages after pipe::write in libzmq

2015-01-21 Thread Thomas Rodgers
I've recently been looking at msg_t and metadata_t and the general lifetime management issues around them. zmq::msg_t is, in some sense, not a "proper" C++ class, in that while it happily possesses all of the compiler generated default operations (default ctor, copy ctor, default dtor, default ass

[zeromq-dev] Correct behavior for closing messages after pipe::write in libzmq

2015-01-20 Thread Topher Brown
I recently tracked down a memory leak of the message memory buffer related to disconnecting sockets. Github issue here: https://github.com/zeromq/libzmq/issues/1313 The problem stemmed from not calling msg::close on a message that fails to write to the pipe. While researching through the code I no