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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: