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

client connection blocks in sync_connect #570

Open
huebl opened this issue Jul 27, 2023 · 0 comments
Open

client connection blocks in sync_connect #570

huebl opened this issue Jul 27, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@huebl
Copy link
Contributor

huebl commented Jul 27, 2023

We open a new client connection with sync_connect and use a wrong url. The application blocks. We expect the sync_connect function to exit with an error.

		// set secure channel configuration
		SessionServiceConfig sessionServiceConfig;
		sessionServiceConfig.secureChannelClient_->endpointUrl(endpointUrl_);
		sessionServiceConfig.secureChannelClient_->cryptoManager(cryptoManager_);
		sessionServiceConfig.session_->sessionName("BDRInlayClient");

		// create session
		sessionService_ = serviceSetManager_.sessionService(sessionServiceConfig);
		if (!sessionService_) {
			Log(Error, "create session service error")
				.parameter("EndpointUrl", endpointUrl_);
			return false;
		}

		// open connection to opc ua server
		if (sessionService_->syncConnect() != Success) {
			Log(Error, "open connection to opc ua server error")
				.parameter("EndpointUrl", endpointUrl_);
			return false;
		}
@huebl huebl added the bug Something isn't working label Jul 27, 2023
@huebl huebl self-assigned this Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant