Skip to content
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

Add ZMQ_DELAY_ATTACH_ON_CONNECT sockopt #373

Merged
merged 3 commits into from Jun 12, 2012
Merged

Conversation

ianbarber
Copy link
Member

This patch adds a socket option which stops messages being load balanced to endpoints that have not yet finished connecting.

This patch, salvaged from a trainwreck accidental merge earlier, adds a
new sockopt, ZMQ_DELAY_ATTACH_ON_CONNECT which prevents a end point
being available to push messages to until it has fully connected, making
connect work more like bind. This also applies to reconnecting sockets,
which may cause message loss of in-queue messages, so it is sensible to
use this in conjunction with a low HWM and potentially an alternative
acknowledgement path.

Notes on most of the individual commits can be found the repository log.
This patch, salvaged from a trainwreck accidental merge earlier, adds a
new sockopt, ZMQ_DELAY_ATTACH_ON_CONNECT which prevents a end point
being available to push messages to until it has fully connected, making
connect work more like bind. This also applies to reconnecting sockets,
which may cause message loss of in-queue messages, so it is sensible to
use this in conjunction with a low HWM and potentially an alternative
acknowledgement path.

Notes on most of the individual commits can be found the repository log.
Rename the pipeset to terminating_pipes, as suggested by Martin H. Adds
asserts to test the pipe is contained in the terminating set where
appropriate.
hintjens added a commit that referenced this pull request Jun 12, 2012
Add ZMQ_DELAY_ATTACH_ON_CONNECT sockopt
@hintjens hintjens merged commit 076e081 into zeromq:master Jun 12, 2012
@hintjens
Copy link
Member

Yay :)

benjdero pushed a commit to benjdero/libzmq that referenced this pull request Feb 20, 2023
Problem: JNI-Android build scripts are out of date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants