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

change connect.socket in poll.socket example from * to localhost #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcai849
Copy link

@jcai849 jcai849 commented Sep 28, 2021

The poll.socket() example left me with an error at the changed line;
Binding on all endpoints with connect.socket() as per the example yields the following:

> connect.socket(out.socket,"tcp://*:5557")
Invalid argument

With associated errors:

> zmq.errno()
[1] 22
> zmq.strerror()
[1] "Invalid argument"

Specifying "tcp://localhost:5557" as endpoint ensures appropriate connection, and fixes the issue.

Copy link
Contributor

@armstrtw armstrtw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch. did not raise an error in earlier versions of the core library.

@jeroen jeroen force-pushed the master branch 2 times, most recently from 8ff7ca8 to 9795f9b Compare May 8, 2023 10:09
@jeroen jeroen force-pushed the master branch 3 times, most recently from de16540 to 0711fad Compare September 25, 2023 21:18
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.

2 participants