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

Fix bug in connecter #68

Merged
merged 1 commit into from Jul 31, 2012
Merged

Fix bug in connecter #68

merged 1 commit into from Jul 31, 2012

Conversation

hurtonm
Copy link
Member

@hurtonm hurtonm commented Jul 30, 2012

The connecter used EAGAIN to signal that the connection
couldn't be completed immediately. But the same value was
used by connect(2) to signal that it failed. This made it
impossible for the connecter to distinguish between these
conditions.

The patch modifies the connecter to use EINPROGRESS value,
as originally returned by connect(2).

Another problem addressed by the patch is the situation
when a connection could not be completed immediately
with the IPC transport. The patch modifies the connecter
so that it behaves similarly to TCP transport.

Refs. https://zeromq.jira.com/browse/LIBZMQ-381

The connecter used EAGAIN to signal that the connection
couldn't be completed immediately. But the same value was
used by connect(2) to signal that it failed. This made it
impossible for the connecter to distinguish between these
conditions.

The patch modifies the connecter to use EINPROGRESS value,
as originally returned by connect(2).

Another problem addressed by the patch is the situation
when a connection could not be completed immediately
with the IPC transport. The patch modifies the connecter
so that it behaves similarly to TCP transport.

Refs. https://zeromq.jira.com/browse/LIBZMQ-381
hintjens added a commit that referenced this pull request Jul 31, 2012
@hintjens hintjens merged commit 6d67fef into zeromq:master Jul 31, 2012
dvj pushed a commit to prismskylabs/zeromq2-x that referenced this pull request Sep 2, 2014
Bumped version for next release
dvj pushed a commit to prismskylabs/zeromq2-x that referenced this pull request Sep 2, 2014
ARM toolchain compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants