[zeromq-dev] Exception using ZeroMQ
Check Peck
comptechgeeky at gmail.com
Wed Jan 28 03:34:52 CET 2015
In Ctx.java class, I saw this line -
// If max_sockets limit was reached, return error.
if (empty_slots.isEmpty ()) {
throw new IllegalStateException("EMFILE");
}
But under what circumstances this will happen?
On Tue, Jan 27, 2015 at 4:22 PM, Check Peck <comptechgeeky at gmail.com> wrote:
> I am using ZeroMQ in Java and it was working fine but suddenly I saw this
> exception getting thrown -
>
> java.lang.IllegalStateException: EMFILE
> at zmq.Ctx.create_socket(Ctx.java:300)
> at org.zeromq.ZMQ$Socket.<init>(ZMQ.java:363)
> at org.zeromq.ZMQ$Context.socket(ZMQ.java:312)
> at org.zeromq.ZContext.createSocket(ZContext.java:113)
>
>
> Any idea what could be wrong? I am disconnecting and closing the socket as
> well.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150127/c5450cb1/attachment.htm>
More information about the zeromq-dev
mailing list