zeromq.node icon indicating copy to clipboard operation
zeromq.node copied to clipboard

Bug in bind and unbind?

Open ronkorving opened this issue 11 years ago • 3 comments

@kkoopa correct me if I'm wrong, but isn't this in the wrong place? https://github.com/JustinTulloss/zeromq.node/blob/master/lib/index.js#L317

ronkorving avatar Sep 02 '14 02:09 ronkorving

I don't know. I just copied bind.

kkoopa avatar Sep 02 '14 13:09 kkoopa

So no callback on error? Except in one case of error... This doesn't smell right.

ronkorving avatar Sep 03 '14 02:09 ronkorving

Fwiw I can't get unbind to work at all right now, only unbindSync seems to do the trick.

edit: I resolved my issue. Turns out you can't rely on the callbacks to be fired only after they're ready. Delaying my send by a few ms helped.

mallocator avatar Apr 20 '16 22:04 mallocator