[zeromq-dev] Issue with 2.0.10 java binding -- poll
Scott Asher
scottpriceasher at gmail.com
Wed Oct 20 17:59:31 CEST 2010
In the new Java binding release to work with 2.0.10, the Poller class
was changed substantially. In particular, the register() function had
the ability to specify which events to register for removed, and in
its place is the following code:
public int register (Socket socket) {
return register (socket, POLLIN | POLLOUT | POLLERR);
}
The problem is that for bidirectional sockets (pair), I now cannot use
the timeout functionality of poll() as it will almost always return
immediately because the socket will be available for outbound traffic.
The old design was fine -- why the change?
Scott
More information about the zeromq-dev
mailing list