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

set SecureChannel nil in Close() method #596

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

hotafrika
Copy link
Contributor

I was trying to implement this flow Connect() -> Read data -> Disconnect network from host -> Close() -> Connect() in loop but I was always receiving opcua: already connected.
Client has option opcua.AutoReconnect(false).
So I noticed that SecureChannel exists even after Close() method call.

@hotafrika
Copy link
Contributor Author

hotafrika commented Aug 12, 2022

@kung-foo Hi! Please rerun workflows. I forgot to check it in my fork repo. Now it is OK (I checked)!

@pavel-fokin
Copy link

@kung-foo Hi! This PR should solve an issue with reconnection. Please, review when you have time.

@magiconair magiconair added this to the v0.3.12 milestone Mar 22, 2023
@magiconair magiconair merged commit 020a945 into gopcua:main Mar 22, 2023
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

Successfully merging this pull request may close these issues.

3 participants