Stopping a synchronous Server stalls #1499
-
Currently I'm short of a minimal example; but when I'm starting a synchronous server, handle some methods and want to stop it eventually via an OPC UA endpoint I'm running into troubles closing a ThreadPool, which simply never stops.
The latter is a call to Is there a step I'm missing prior to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind. Rereading it beat me to it. |
Beta Was this translation helpful? Give feedback.
Nevermind. Rereading it beat me to it.
The method I'm waiting for is my stop method which should not handle stopping the server synchronously.
It can't evaluate the result anyway, so calling the stop of my server async does the trick;
another approach would be setting a flag which an observer pattern watches and reacts on (and shuts down the server eventually)