-
Notifications
You must be signed in to change notification settings - Fork 51
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
Flux API: replace zmsg_t with new opaque type #168
Comments
See issue #124 for some discussion on reactor API revision |
The fact that |
Ah yes. This tripped me up because at one point I was trying to save a |
I'm for losing that idiom. There are few places where we do things like send a response if the zmsg hasn't been destroyed in a request handler and this just gets confusing. |
I agree, that particular idiom is rather obtuse. How best to deal with it I'm not sure though. Duplicating the message every time it gets passed to CZMQ doesn't feel like the right answer, but I'm not sure there's another one. I'm putting together a meta-issue for the public API issues at #170. |
Thanks @trws for your work on the trackers and milestones.
I think that'd be the way to squash the behavior without having to |
PR #219 solved this for libflux-core. Closing. |
The Flux API should not include parameters of type
zmsg_t
as this forces a czmq/zmq dependency on all users and forgoes some opportunities for optimization of common Flux use cases (such as matching topic sub-strings) within the message class. Instead introduce a new opaque typeflux_msg_t
(or similar) and revise API to use that instead.This is an opportunity to refine the message API and so let's agree on interfaces here before proceeding. The low-level headers in question are
Other interfaces built on these may have to change too but let's tackle the low level first.
The text was updated successfully, but these errors were encountered: