-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Don't know how to handle this now" in zmq.rs send_round_robin #151
Comments
Seems like it's the case when sending message to next peer in queue fails for some reason. That's definitely not your mistake. Could you build zmq from your fork and add dbg!(e) to that code branch? It would be useful to know the actual error you are hitting. Maybe it should be enough to just add a |
I added the debug log there, here's the error:
|
Released a version 0.3.2 with a fix. Feel free to reopen if you have any issues. |
Thanks for quick fix @Alexei-Kornienko, I tested it and panic is no longer raised, however the error is somehow never surfaced. I added a bunch of logging and don't see it returned from |
Could you please describe your use case in more details? What sockets you are using and how? Maybe I'll be able to help you with this. |
Thank for taking the time!
Right, so we actually surface all errors, these two are simple wrappers around
And they are called here (you might need to click "Show diff" to jump to relevant line):
All these errors are later
That's a good pointer and seems very much related to the work we're doing. Also huge thanks for |
One of the biggest blockers (IMHO) is reconnect. If it's going to be implemented close to ZMQ spec I would say that existing sockets implementation would be good enough to use it. Many options (like buffer size, etc.) should be configurable but in my opinion it's a second priority |
Would be really good to get some feedback from real users about the APIs and their usability (multipart message construction, etc.). Maybe something needs changing before I can mark them as stable.. |
Sounds good! Just to be clear, we're fine to stay on the bleeding edge for some time and it seems reconnection logic might be the only blocker at the moment for us. Sudden API changes in unstable libs are expected and we're fine with it. I will debug some more the problems I'm having with the error not being raised. |
After some thinking it seems that my commit is not correct and might cause deadlock... |
@Alexei-Kornienko I was going to strace my program on that hang, but it's a great news that you figured this out already. Just FYI - when I replaced the panic with pass (or |
@bartlomieju Could you please test this branch - fix/151 and see if it works for you? |
Sure thing, on it. |
@Alexei-Kornienko indeed this fixes the problem, I'm no longer getting hangs and error is showing up in the terminal: |
Cool.. so this problem is solved. I'll bump a new version with the fix |
In developing Jupyter for Deno, I'm hitting the error "Don't know how to handle this now" in
send_round_robin
. It's not clear to me whether this is a mistake I'm making or an unimplemented code path ofzmq.rs
. Can you help me?Jupyter console output attached for context -- it looks like maybe it's disconnect / reconnecting just before the error occurs, which might be part of the problem based on the comments in the
zmq.rs
code.The text was updated successfully, but these errors were encountered: