[zeromq-dev] Exception using ZeroMQ

Check Peck comptechgeeky at gmail.com
Wed Jan 28 23:01:27 CET 2015


Didn't got any reply so far. Any thoughts on my question?

On Tue, Jan 27, 2015 at 9:13 PM, Check Peck <comptechgeeky at gmail.com> wrote:

> And we are using "0.3.4" version of ZeroMQ -
>
>     <dependency>
>         <groupId>org.zeromq</groupId>
>         <artifactId>jeromq</artifactId>
>         <version>0.3.4</version>
>     </dependency>
>
>
> Also, where does in the code of ZeroMQ mentions that closing sockets is
> asynchronous? We are calling disconnect and then close on the socket.
>
>
>
> On Tue, Jan 27, 2015 at 9:00 PM, Check Peck <comptechgeeky at gmail.com>
> wrote:
>
>> Yes it looks like we are opening/closing pretty quickly. Does creating
>> sockets is asynchronous too? And should we deal with closing sockets if it
>> is asynchronous?
>>
>> On Tue, Jan 27, 2015 at 6:44 PM, Colin Ingarfield <colin at ingarfield.com>
>> wrote:
>>
>>>  Closing sockets is asynchronous.  Are you opening/closing sockets very
>>> quickly?  That could cause it to run out of "empty" slots.
>>>
>>>
>>> On 1/27/15 8:34 PM, Check Peck wrote:
>>>
>>>  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.
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> zeromq-dev mailing listzeromq-dev at lists.zeromq.orghttp://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150128/8d89d2d6/attachment.htm>


More information about the zeromq-dev mailing list