locka99 / opcua

A client and server implementation of the OPC UA specification written in Rust
Mozilla Public License 2.0
475 stars 128 forks source link

Fix/cbid 3742: Ensure sessions are not all cleared when a transport session is closed #343

Closed luander closed 1 week ago

luander commented 1 week ago

Originally, when a transport session (not the same as a user session) is closed with a bad status, all sessions on the shared Hashmap were getting cleared, which means connected clients would have their sessions invalidated. This PR removes the clearing out of all sessions.