FreeOpcUa / opcua-asyncio

OPC UA library for python >= 3.7
GNU Lesser General Public License v3.0
1.04k stars 345 forks source link

Add server-side session watchdog #1655

Closed chrisjbremner closed 2 weeks ago

chrisjbremner commented 3 weeks ago

As discussed here, to comply with section 5.6.2 of the spec, the server should close a session that is inactive within its session timeout:

Sessions are terminated by the Server automatically if the Client fails to issue a Service request on the Session within the timeout period negotiated by the Server in the CreateSession Service response. This protects the Server against Client failures and against situations where a failed underlying connection cannot be re-established. Clients shall be prepared to submit requests in a timely manner to prevent the Session from closing automatically.

I no longer think this will actually resolve anything in https://github.com/FreeOpcUa/opcua-asyncio/issues/116, but I think it's useful nonetheless if we want to comply with the spec.