-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
UA_Client_connect() is blocking #6460
Comments
Are you using the 1.4 version? we have dedicated _async versions for the connect methods. Use those. It can take some time for the connection to fail. That depends on the DNS timeout configured in your operating system. |
I got the same error. The log shows the folling: But after that the function doas not return, it gets stuck. Note: If the Server is reachable everything works fine. I now switched to the async way but got surprised, that the async function leads to periodic retrys to connect without me specifing to do so. This also didn't stop after quitting the while loop or callin Client_disconnect. The only way I found to stop that was by calling Client_delete which feels wrong to me... But this might be a different issue. |
Description
I tried to run example client_connect_loop.c, but the function UA_Client_connect() is blocking when OPC server is unreachable.
The program stuck here and if server is reachable it is not reconnected. I want to use UA_Client_connectUsername() insteat of UA_Client_connect(), but behavior is same (blocking). I need non blocking function that returns me something if something wrong. Can someone help me, please?
Background Information / Reproduction Steps
Checklist
Please provide the following information:
The text was updated successfully, but these errors were encountered: