Sharing Secure Channel between Sessions #1234
starturtle
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
I just ask the other way round: Does the opc ua spec support such a behaviour? |
Beta Was this translation helpful? Give feedback.
4 replies
-
I never heard of that and I ae no interest in implementing this. If I had time I would implement UDP and json/http protocol |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Inspired by the feature list discussion, I've a question for the veteran developers on this project.
From the client code, at a first glance it looks like the plan once existed to support channel sharing (i.e. multiple sessions per secure channel): the client instance has a session counter, at least. So when I first saw the code, I thought the plan might exist. Where there is a counter, there's something to count.
However, the only use the session counter seems to have is default-naming the session.
Is there anyone planning to introduce channel sharing? If you do, do you have any experience or advice for someone who'd dare to work on this?
I've been having threading issues with the server every once in a while, so could imagine it's quite nontrivial to juggle the requests from multiple sessions on one socket. Not to mention threading, properly shutting down half-opened sessions, and closing the secure channel (primarily the socket) when the last session shuts down. Does the test environment somehow lend itself to testing multi-client scenarios that way? Or would that just open the next big construction site?
Do you think an implementation doable at all for python-opcua? Perhaps the asyncio project is a bit more convenient when it comes to multithreaded applications. I'm mostly starting the discussion here because I'm more experienced with this repo's code.
Beta Was this translation helpful? Give feedback.
All reactions