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

UA_Client_connect() is blocking #6460

Open
2 tasks
spole340 opened this issue May 7, 2024 · 1 comment
Open
2 tasks

UA_Client_connect() is blocking #6460

spole340 opened this issue May 7, 2024 · 1 comment

Comments

@spole340
Copy link

spole340 commented May 7, 2024

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:

  • open62541 Version (release number or git tag):
  • Operating system: Ubuntu 22.04
@jpfr
Copy link
Member

jpfr commented May 19, 2024

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.

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

2 participants