[zeromq-dev] is socket.recv interruptable in java ?

Alexey Ermakov zee at technocore.ru
Thu Jan 13 19:08:26 CET 2011


jzmq doesn't support Thread.interrupt() at all. Supporting it in
Socket.recv() would be impossible (assuming that it remains as close
as possible to zmq_recv), and supporting it in poll() might be doable,
but is going to be quite hard. Your best options are using poll() with
timeouts or using an inproc signalling socket to wakeup the receiving
thread.

On Wed, Jan 12, 2011 at 6:54 PM, Koert Kuipers
<Koert.Kuipers at diamondnotch.com> wrote:
> In the java code I cannot find any indication that recv() is interruptable.
> Also recv does not throw any checked exceptions such as
> InterruptedException. Can anyone provide more info on this for me?
>
> Thanks koert
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>



More information about the zeromq-dev mailing list