Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threaded use for inproc doesn't connect. #5

Open
kthakore opened this issue Jun 20, 2010 · 3 comments
Open

Threaded use for inproc doesn't connect. #5

kthakore opened this issue Jun 20, 2010 · 3 comments

Comments

@kthakore
Copy link
Contributor

http://github.com/kthakore/ZeroMQ-Perl/commit/9820dc946f45e56c4d5472477001e7e3c8066a22

:~/ZeroMQ-Perl$ perl xt/thread_0mq.pl inproc://asd 200 10
[local] Trying to start at inproc://asd
[remote]Trying to start at inproc://asd
Thread 2 terminated abnormally: Caught C++ exception of type or derived from 'zmq::error_t': Connection refused at xt/thread_0mq.pl line 54.

@tsee
Copy link
Owner

tsee commented Jul 13, 2010

This seems to be because 0MQ Contexts aren't shared between perl ithreads. They could be shared in principle, but would need guards to prevent double-frees due to the destructors being called. This is totally possible, I just haven't had the time to do it. Use ipc or tcp transports instead until somebody fixes this.

@lestrrat
Copy link
Contributor

lestrrat commented Sep 2, 2010

Please try the recent uploads, or if you're brave enough, checkout my repo:
http://github.com/lestrrat/ZeroMQ-Perl

The scripts under eg/ works for me, and the threaded_*.pl scripts use the inproc:// spec

@kthakore
Copy link
Contributor Author

kthakore commented Sep 2, 2010

Ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants