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

Close ClientSession from server #375

Open
icemini opened this issue Oct 27, 2020 · 0 comments
Open

Close ClientSession from server #375

icemini opened this issue Oct 27, 2020 · 0 comments

Comments

@icemini
Copy link

icemini commented Oct 27, 2020

Hi,

I'm facing an issue with the termination of the OPCUA client session. When both my OPCUA server and client are running and I terminate the client with a CTRL+C command in the terminal. The client session still exist on the OPCUA server and is not closed properly and thereby affecting the maxAllowedSessionNumber count on my server even though the client has been terminated.

When I do CTRL+C on my client the server does not receive a "session_closed" event, however it does receive a "closeChannel" event. From this channel I am able to extract the ServerSession and closing it and receiving a closed event on the server. But this still does not terminate the ClientSession and keeps it open.

server.on("closeChannel", function (channel) { Object.values(channel.sessionTokens)[0].close(true, "Terminated"); // extract ServerSession });

Is there anyway I can manually close the ClientSession from the server side when it has been closed with CTRL+C on the client?

Thank you.

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

1 participant