-
Notifications
You must be signed in to change notification settings - Fork 85
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
connection timeout #72
Comments
connect returns an endpoint object that has an address attribute
|
My m ipc_path = "ipc://test"
s1 = Socket(PUSH)
s1.connect(ipc_path) |
Ok I see a problem. Testing between process on ubuntu 18.10 with libnanomsg version 0.8~beta+dfsg-1 (that's very old?) I can't connect between the two using 'ipc://test' - lsof shows two separate unix sockets called test. using 'ipc:///tmp/test' work fine. Is this the same issue you are having? |
Sorry, This is an misunderstanding. One process(server) listen to a Unix Socket, and another process(client) can connect to it by this socket. If the server does not exist so there is no Unix Socket ( |
Ah Ok. Depends on your use case I guess. But if you just want to exit the client if the server is not there you could set a socket timeout with recv_timeout? But I've just tried it and it seems broken. What are your OS, Python version and architecture (x86_64?)? |
Sorry for late reply. How can I change the socket timeout for recv or send? |
After creating a socket, how can I find out that the connection path is available or not? Please see the following codes, assume that
path
isn't available. How can I detect it afters1.connect(path)
?The text was updated successfully, but these errors were encountered: