Open raptorsj opened 1 year ago
You should not kill the client but rather properly close the session and disconnect the client using the provided API.
Abruptly killing the client will cause the server to keep the session object on the server side alive for a duration that is defined in the requestedSessionTimeout: 30000
parameter above. (the server may decide to adjust the value to a more appropriate one)
The server keeps the session open on its end in case the disconnection was due to a network outtage to allow the communication to resume seemlessly.
Some improvements have been made toward detecting socket timeout inside node-opcua@2.101.0 The problem should be fixed now and detection This problem was apparent especially when running node-opuca client inside a docker container
@raptorsj , can you give it a try and tell me if the problem is now fixed on your end with node-opcua@2.102.0 ?
will check and update
@raptorsj: any update ?
Current behavior i tried to kill my client device and it is taking 45 seconds to respond from node-opcua for triggering connection lost event where as i'm using uaexpert tool for checking the same it is taking less than 10 seconds. is there any way to improve this??
Describe the bug
Step by step instruction to reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Gist
gist:Context
(x) my request is related to node-opcua acting as an OPCUA CLIENT
( ) my request is related to node-opcua acting as an OPCUA SERVER
( ) I have installed node-opcua from source ( using git clone)
(x) I have installed node-opcua as a package ( using npm install )
( ) I am using an application that uses node-opcua
Device: __
OS version: __
Description of the other OPCUA system I am trying to connect to:
node-opcua version: : 2.71.0
Node:
node --version
= 16.14.2