Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

ZMQ sometimes locks up when creating new zmq.Context() #576

Open
jez9999 opened this issue Oct 25, 2016 · 0 comments
Open

ZMQ sometimes locks up when creating new zmq.Context() #576

jez9999 opened this issue Oct 25, 2016 · 0 comments

Comments

@jez9999
Copy link

jez9999 commented Oct 25, 2016

OK, this has happened to me twice, now. The first time I restarted the PC and it started working again, so it feels like some kind of resource problem where ZMQ has used up all its resources and Windows can't allocate any more, so ZMQ just hangs.

I'm using Windows 7, Node 7.0.0, and ZMQ Node.js bindings 2.15.3.

Basically, things work fine for a while. I am stopping and starting my JS program quite often, and each time it's creating a new ZMQ socket. After a while though (maybe 100 starts of the program? that's just a guess), it starts hanging when I try to create a socket with zmq.socket('sockName'). I debugged it and traced the exact point at which my Node program hangs as index.js line 174:

ctx = new zmq.Context(io_threads);

(io_threads is 1.) Not sure why it hangs here. Why might it? Is there any further debugging I can do to see just what is causing it to hang?

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

No branches or pull requests

1 participant