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

nanomsg.NanoMsgAPIError: Invalid argument #75

Open
supermario1990 opened this issue Sep 12, 2019 · 0 comments
Open

nanomsg.NanoMsgAPIError: Invalid argument #75

supermario1990 opened this issue Sep 12, 2019 · 0 comments

Comments

@supermario1990
Copy link

supermario1990 commented Sep 12, 2019

from nanomsg import Socket, PAIR, SOL_SOCKET, RCVTIMEO
import time
s1 = Socket(PAIR)
s1.recv_timeout = 100
s1.connect('tcp://127.0.0.1:9099')

s1.recv_timeout = 100 <--- this line is wrong

Traceback (most recent call last):
File "/mnt/d/mypython/mynanomsg/nanomsg_pair_linux.py", line 5, in
s1.recv_timeout = 100
File "/root/.pyenv/versions/3.7.4/lib/python3.7/site-packages/nanomsg-1.0-py3.7-linux-x86_64.egg/nanomsg/init.py", line 245, in _set_recv_timeout
return self.set_int_option(SOL_SOCKET, RCVTIMEO, value)
File "/root/.pyenv/versions/3.7.4/lib/python3.7/site-packages/nanomsg-1.0-py3.7-linux-x86_64.egg/nanomsg/init.py", line 376, in set_int_option
buf))
File "/root/.pyenv/versions/3.7.4/lib/python3.7/site-packages/nanomsg-1.0-py3.7-linux-x86_64.egg/nanomsg/init.py", line 63, in _nn_check_positive_rtn
raise NanoMsgAPIError()
nanomsg.NanoMsgAPIError: Invalid argument

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

No branches or pull requests

1 participant