lestrrat-p5 / ZMQ

libzmq Perl binding
46 stars 31 forks source link

Test 100_basic.t hangs with zeromq 4.0.3 #44

Open cdybedahl opened 10 years ago

cdybedahl commented 10 years ago

It appears that version 4 of ØMQ changed its semantics to allow the case that the first test in 100_basic.t expects to fail. The result is, as far as I understand it, that the test unexpectedly succeeds and when perl tries to GC the client socket ØMQ refuses to destroy it until it's completed it's initialization. Since that never happens, the effect is to make the test hang. Adding an "else" branch that does zmq_bind() makes the test proceed (and report failure).

I don't know if this test still tests something interesting on ØMQ 4, or should just be skipped in that case.

All other tests pass with ØMQ 4.0.3

lestrrat commented 10 years ago

I don't plan on working with ZMQ (and even less with ZMQ4) in the near future, and so I'm not going to spend time debugging this code. I'm willing to review code and do release management if necessary, but please send me pull reqs if this needs to be resolved.

cdybedahl commented 10 years ago

Fair enough. I'll get back to you when/if I actually need this, at the moment I'm just investigating options.

nponeccop commented 10 years ago

The test works for me on 4.0.4 (linux i686 with perl 5.20)