-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
problem: request socket state machine check is not running #1730
Conversation
problem: request socket state machine check is not running
Hi, Option 1 So this class seems to act only as a big Also, the only two other socket types subclassing Option 2 What do you think? |
I think option 2. You missed something important with option 1, unfriendly
|
Thanks for taking the time to answer. OK. So first I misunderstood the role of Then, I still have two questions:
|
|
Problem: Since pull request zeromq#1730 was merged, protocol for REQ socket is checked at the session level and this check does not take into account the possibility of a request_id being part of the message. Thus the option ZMQ_REQ_CORRELATE would no longer work. This is now fixed: the possiblity of a 4 bytes integer being present before the delimiter frame is taken into account (whether or not this breaks the REQ/REP RFC is another issue).
Problem: Since pull request zeromq#1730 was merged, protocol for REQ socket is checked at the session level and this check does not take into account the possibility of a request_id being part of the message. Thus the option ZMQ_REQ_CORRELATE would no longer work. This is now fixed: the possiblity of a 4 bytes integer being present before the delimiter frame is taken into account (whether or not this breaks the REQ/REP RFC is another issue).
Fixed ZMQ_REQ_CORRELATE (see pull request #1730)
following commit removed the virtual modifier from push_msg/pull_msg from session base, causing the req_session state machine that validated the REQ-REP rfc not to run.
This PR fixes this problem by returning the virtual modifier.
However because of this fix it break the ZMQ_REQ_CORRELATE feature.
ZMQ_REQ_CORRELATE is breaking the REQ-REP rfc.
Bottom line, we either fix the ZMQ_REQ_CORRELATE feature (and document it in the RFC) or should remove those features.