zeromq/cljzmq

Behavior of receive-str on socket timeouts.

ToBeReplaced opened this issue · 4 comments

Presently, receive-str will raise a NullPointerException if a timeout occurs after (.setReceiveTimeOut socket timeout). I believe that it should return nil. What is the correct behavior?

That's better than a NullPointerException

@ToBeReplaced Do you have a stacktrace?

Just merged in a fix where it returns nil and added set-receive-timeout to the zmq.clj

Thanks! I had just gotten a test case ready for you.