You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: