zeromq / erlzmq2

Erlang binding for 0MQ (v2)
http://zeromq.org/
MIT License
165 stars 63 forks source link

second bind of the same ipc does not fail #41

Closed okeuday closed 12 years ago

okeuday commented 12 years ago

I believe this is the same bug reported in the python bindings here: http://lists.zeromq.org/pipermail/zeromq-dev/2012-May/017244.html

I noticed this with separate erlzmq contexts both binding to the same ipc, where one would fail silently, and then refuse to work. This may have worked in past versions of ZeroMQ somehow, but does not work now. The second attempt should just spit back an error.

yrashk commented 12 years ago

Do you have a pull request ;)?

okeuday commented 12 years ago

Actually, reading about it more seems to indicate that this is a ZeroMQ bug. I will try to find more references to it, to try and determine when it will be fixed. I was testing with the latest versions of v2 and v3, so it is a problem in their latest code right now.

okeuday commented 12 years ago

So, this looks like an issue that is with the underlying zeromq C library, so it really is best fixed there. I believe it is as simple as checking for the existence of the file, but they seem to have ignored the issue on the mailing list. Either way, this shouldn't be an issue with erlzmq2.