You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you call Options::setSocketOpt with zmq.ZMQ.ZMQ_TCP_ACCEPT_FILTER, it either has no effect (e.g. because everything matches the filter) or it causes a NullPointerException inside TcpListener. this NullPointerException escapes the Poller::run loop which prevents any future connections (and causes other problems).
here is a sample stack trace produced by the above test:
Exception in thread "iothread-2" java.lang.NullPointerException
at zmq.Utils.tuneTcpSocket(Utils.java:37)
at zmq.TcpListener.acceptEvent(TcpListener.java:72)
at zmq.IOObject.acceptEvent(IOObject.java:104)
at zmq.Poller.run(Poller.java:231)
at java.lang.Thread.run(Thread.java:745)
in order to fix the issue, we either need to add a null check to TcpListener::acceptEvent or throw an IOException from TcpListener::accept instead of returning null. i prefer the later solution and will submit a pull request shortly.
The text was updated successfully, but these errors were encountered:
if you call Options::setSocketOpt with zmq.ZMQ.ZMQ_TCP_ACCEPT_FILTER, it either has no effect (e.g. because everything matches the filter) or it causes a NullPointerException inside TcpListener. this NullPointerException escapes the Poller::run loop which prevents any future connections (and causes other problems).
here is a short self contained complete example:
here is a sample stack trace produced by the above test:
in order to fix the issue, we either need to add a null check to TcpListener::acceptEvent or throw an IOException from TcpListener::accept instead of returning null. i prefer the later solution and will submit a pull request shortly.
The text was updated successfully, but these errors were encountered: