[zeromq-dev] zeromq Windows handle leak?

Pieter Hintjens ph at imatix.com
Tue Dec 25 19:52:05 CET 2012

On Tue, Dec 25, 2012 at 5:44 PM, KIU Shueng Chuan <nixchuan at gmail.com> wrote:

> Eh? Doesn't the pirate pattern do a close and open?

Yes, but only in case of failures, which should be rare.

> I was referring to a win32 HANDLE leak. I seem to have located the leak.
> zmq::signaler_t::make_fdpair() opens an Event but fails to CloseHandle it.
> Adding the CloseHandle, the handle count for the sample program stays
> constant in task manager.

Hmm, nice to be proven wrong on this. Would you send a pull request
with your fix then?

If you want us to put that into the stable 3.2 tree, log the issue in Jira.


More information about the zeromq-dev mailing list